Skip to content

Commit b800a93

Browse files
committed
Fix MSVC "not all control paths return a value" warning. NFC.
1 parent 6f068b9 commit b800a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/AsmWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3313,7 +3313,7 @@ static const char *getImportTypeName(GlobalValueSummary::ImportKind IK) {
33133313
case GlobalValueSummary::Declaration:
33143314
return "declaration";
33153315
}
3316-
assert(false && "invalid import kind");
3316+
llvm_unreachable("invalid import kind");
33173317
}
33183318

33193319
void AssemblyWriter::printFunctionSummary(const FunctionSummary *FS) {

0 commit comments

Comments
 (0)