llvm.org GIT mirror llvm / 6193797
[Remarks] Fix gcc build for r356519 Fails here: http://lab.llvm.org:8011/builders/clang-cmake-x86_64-sde-avx512-linux/builds/20046/steps/build%20stage%201/logs/stdio git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356522 91177308-0d34-0410-b5e6-96231b3b80d8 Francis Visoiu Mistrih 4 months ago
1 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
6262
6363 Error YAMLRemarkParser::parseType(Type &Result, yaml::MappingNode &Node) {
6464 auto Type = StringSwitch(Node.getRawTag())
65 .Case("!Passed", Type::Passed)
66 .Case("!Missed", Type::Missed)
67 .Case("!Analysis", Type::Analysis)
68 .Case("!AnalysisFPCommute", Type::AnalysisFPCommute)
69 .Case("!AnalysisAliasing", Type::AnalysisAliasing)
70 .Case("!Failure", Type::Failure)
71 .Default(Type::Unknown);
72 if (Type == Type::Unknown)
65 .Case("!Passed", remarks::Type::Passed)
66 .Case("!Missed", remarks::Type::Missed)
67 .Case("!Analysis", remarks::Type::Analysis)
68 .Case("!AnalysisFPCommute", remarks::Type::AnalysisFPCommute)
69 .Case("!AnalysisAliasing", remarks::Type::AnalysisAliasing)
70 .Case("!Failure", remarks::Type::Failure)
71 .Default(remarks::Type::Unknown);
72 if (Type == remarks::Type::Unknown)
7373 return make_error("expected a remark tag.", Node);
7474 Result = Type;
7575 return Error::success();