mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Fix typo
This commit is contained in:
@@ -42,7 +42,7 @@ bool lb_is_type_aggregate(Type *t) {
|
|||||||
void lb_emit_unreachable(lbProcedure *p) {
|
void lb_emit_unreachable(lbProcedure *p) {
|
||||||
LLVMValueRef instr = LLVMGetLastInstruction(p->curr_block->block);
|
LLVMValueRef instr = LLVMGetLastInstruction(p->curr_block->block);
|
||||||
if (instr == nullptr || !lb_is_instr_terminating(instr)) {
|
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);
|
LLVMBuildUnreachable(p->builder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user