[llvm] r366874 - [Remark] Suppress the "-Wreturn-type" compiler warning, NFC
Haojian Wu via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 00:55:02 PDT 2019
Author: hokein
Date: Wed Jul 24 00:55:01 2019
New Revision: 366874
URL: http://llvm.org/viewvc/llvm-project?rev=366874&view=rev
Log:
[Remark] Suppress the "-Wreturn-type" compiler warning, NFC
Modified:
llvm/trunk/lib/Remarks/RemarkParser.cpp
Modified: llvm/trunk/lib/Remarks/RemarkParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Remarks/RemarkParser.cpp?rev=366874&r1=366873&r2=366874&view=diff
==============================================================================
--- llvm/trunk/lib/Remarks/RemarkParser.cpp (original)
+++ llvm/trunk/lib/Remarks/RemarkParser.cpp Wed Jul 24 00:55:01 2019
@@ -60,6 +60,7 @@ llvm::remarks::createRemarkParser(Format
return createStringError(std::make_error_code(std::errc::invalid_argument),
"Unknown remark parser format.");
}
+ llvm_unreachable("unhandled ParseFormat");
}
Expected<std::unique_ptr<Parser>>
@@ -76,6 +77,7 @@ llvm::remarks::createRemarkParser(Format
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.
More information about the llvm-commits
mailing list