Fix typo
This commit is contained in:
1 parent
f504b200a9
commit
6e9f9e6f3c
1 file changed
+1
-1
@@ -42,7 +42,7 @@ bool lb_is_type_aggregate(Type *t) {
|
||||
void lb_emit_unreachable(lbProcedure *p) {
|
||||
LLVMValueRef instr = LLVMGetLastInstruction(p->curr_block->block);
|
||||
if (instr == nullptr || !lb_is_instr_terminating(instr)) {
|
||||
lb_call_intrinsic(p, "trap", nullptr, 0, nullptr, 0);
|
||||
lb_call_intrinsic(p, "llvm.trap", nullptr, 0, nullptr, 0);
|
||||
LLVMBuildUnreachable(p->builder);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user