Skip to content

Commit

Permalink
Fix MSVC "not all control paths return a value" warning. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Jul 4, 2024
1 parent f99746f commit 94b2b1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/SandboxIR/SandboxIR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const char *Instruction::getOpcodeName(Opcode Opc) {
#define DEF_INSTR(ID, OPC, CLASS) OPC
#include "llvm/SandboxIR/SandboxIRValues.def"
}
llvm_unreachable("Unknown Opcode");
}

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

0 comments on commit 94b2b1d

Please sign in to comment.