Skip to content

Commit fc4e8a3

Browse files
committed
[NFC][IR][AsmWriter] Fix Wreturn-type gcc warning
GCC warning: ``` /llvm-project/llvm/lib/IR/AsmWriter.cpp:3175:1: warning: control reaches end of non-void function [-Wreturn-type] 3175 | } | ^ ```
1 parent 8644eb0 commit fc4e8a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/IR/AsmWriter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3172,6 +3172,7 @@ static const char *getVisibilityName(GlobalValue::VisibilityTypes Vis) {
31723172
case GlobalValue::ProtectedVisibility:
31733173
return "protected";
31743174
}
3175+
llvm_unreachable("invalid visibility");
31753176
}
31763177

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

0 commit comments

Comments
 (0)