Fixes #811. Update some stdlib methods. Header printout correctly picks a name. #804

This commit is contained in:
Christoffer Lerno
2023-07-03 01:08:16 +02:00
committed by Christoffer Lerno
parent eaf45436f8
commit 848a5212ef
55 changed files with 735 additions and 793 deletions

View File

@@ -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

View File

@@ -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
}
}