mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
This commit is contained in:
committed by
Christoffer Lerno
parent
eaf45436f8
commit
848a5212ef
@@ -18,7 +18,6 @@ entry:
|
||||
%taddr = alloca i64, align 8
|
||||
%varargslots = alloca [2 x %any], align 16
|
||||
%indirectarg = alloca %"any[]", align 8
|
||||
%reterr = alloca i64, align 8
|
||||
store i64 0, ptr %i, align 8
|
||||
br label %loop.cond
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ fn void test()
|
||||
int x = foo();
|
||||
if (x > 0) return;
|
||||
unreachable();
|
||||
x++;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,10 +35,4 @@ if.exit: ; preds = %entry
|
||||
store %"any[]" zeroinitializer, ptr %indirectarg, align 8
|
||||
call void @std.core.builtin.panicf(ptr %lo, i64 %hi, ptr @.str.1, i64 14, ptr @.str.2, i64 4, i32 10, ptr byval(%"any[]") align 8 %indirectarg)
|
||||
unreachable
|
||||
after.unreachable: ; No predecessors!
|
||||
%4 = load i32, ptr %x, align 4
|
||||
%add = add i32 %4, 1
|
||||
store i32 %add, ptr %x, align 4
|
||||
ret void
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user