[llvm] b800a93 - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 11 02:45:15 PDT 2024
Author: Simon Pilgrim
Date: 2024-04-11T10:45:01+01:00
New Revision: b800a9352330a5b3db91d43f2cc6a0ddeda03aa6
URL: https://github.com/llvm/llvm-project/commit/b800a9352330a5b3db91d43f2cc6a0ddeda03aa6
DIFF: https://github.com/llvm/llvm-project/commit/b800a9352330a5b3db91d43f2cc6a0ddeda03aa6.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
llvm/lib/IR/AsmWriter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 609de920ba7dd1..941f6a7a7d8232 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -3313,7 +3313,7 @@ static const char *getImportTypeName(GlobalValueSummary::ImportKind IK) {
case GlobalValueSummary::Declaration:
return "declaration";
}
- assert(false && "invalid import kind");
+ llvm_unreachable("invalid import kind");
}
void AssemblyWriter::printFunctionSummary(const FunctionSummary *FS) {
More information about the llvm-commits
mailing list