[Remarks] Silence Wreturn-type warning
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 26 Jul 2019 22:42:54 +0000 (22:42 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 26 Jul 2019 22:42:54 +0000 (22:42 +0000)
Shows up here: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer/builds/27771/steps/annotate/logs/stdio.

llvm-svn: 367162

llvm/lib/Remarks/RemarkParser.cpp

index 1ff9cf6..fba1dcf 100644 (file)
@@ -93,6 +93,7 @@ llvm::remarks::createRemarkParserFromMeta(Format ParserFormat, StringRef Buf,
     return createStringError(std::make_error_code(std::errc::invalid_argument),
                              "Unknown remark parser format.");
   }
+  llvm_unreachable("unhandled ParseFormat");
 }
 
 // Wrapper that holds the state needed to interact with the C API.