[Remarks] Fix gcc build for r356519
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Tue, 19 Mar 2019 21:32:03 +0000 (21:32 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Tue, 19 Mar 2019 21:32:03 +0000 (21:32 +0000)
Fails here:
http://lab.llvm.org:8011/builders/clang-cmake-x86_64-sde-avx512-linux/builds/20046/steps/build%20stage%201/logs/stdio

llvm-svn: 356522

llvm/lib/Remarks/YAMLRemarkParser.cpp

index 76b6bbc..db6b0b2 100644 (file)
@@ -63,14 +63,14 @@ Error YAMLRemarkParser::parseUnsigned(T &Result, yaml::KeyValueNode &Node) {
 
 Error YAMLRemarkParser::parseType(Type &Result, yaml::MappingNode &Node) {
   auto Type = StringSwitch<remarks::Type>(Node.getRawTag())
-                  .Case("!Passed", Type::Passed)
-                  .Case("!Missed", Type::Missed)
-                  .Case("!Analysis", Type::Analysis)
-                  .Case("!AnalysisFPCommute", Type::AnalysisFPCommute)
-                  .Case("!AnalysisAliasing", Type::AnalysisAliasing)
-                  .Case("!Failure", Type::Failure)
-                  .Default(Type::Unknown);
-  if (Type == Type::Unknown)
+                  .Case("!Passed", remarks::Type::Passed)
+                  .Case("!Missed", remarks::Type::Missed)
+                  .Case("!Analysis", remarks::Type::Analysis)
+                  .Case("!AnalysisFPCommute", remarks::Type::AnalysisFPCommute)
+                  .Case("!AnalysisAliasing", remarks::Type::AnalysisAliasing)
+                  .Case("!Failure", remarks::Type::Failure)
+                  .Default(remarks::Type::Unknown);
+  if (Type == remarks::Type::Unknown)
     return make_error<YAMLParseError>("expected a remark tag.", Node);
   Result = Type;
   return Error::success();