Skip to content

Commit 94b2b1d

Browse files
committed
Fix MSVC "not all control paths return a value" warning. NFC
1 parent f99746f commit 94b2b1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/SandboxIR/SandboxIR.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ const char *Instruction::getOpcodeName(Opcode Opc) {
103103
#define DEF_INSTR(ID, OPC, CLASS) OPC
104104
#include "llvm/SandboxIR/SandboxIRValues.def"
105105
}
106+
llvm_unreachable("Unknown Opcode");
106107
}
107108

108109
bool Instruction::classof(const sandboxir::Value *From) {

0 commit comments

Comments
 (0)