Skip to content

Commit 2345a7e

Browse files
committed
assert -> llvm_unreachable
1 parent 993b987 commit 2345a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ static MachineBasicBlock *getSingleUnwindDest(const MachineInstr *TryTable) {
20002000
case wasm::WASM_OPCODE_CATCH_ALL_REF:
20012001
return TryTable->getOperand(3).getMBB();
20022002
default:
2003-
assert(false);
2003+
llvm_unreachable("try_table: Invalid catch clause\n");
20042004
}
20052005
}
20062006

0 commit comments

Comments
 (0)