Incorrect defer/return value ordering in some cases.

This commit is contained in:
Christoffer Lerno
2023-06-18 23:25:33 +02:00
parent 2d46bdf8e3
commit 3bdeec3bc2
7 changed files with 24 additions and 24 deletions

View File

@@ -24,13 +24,11 @@ define void @foo.main() #0 {
entry:
%blockret = alloca i32, align 4
br label %if.then
if.then: ; preds = %entry
store i32 12, ptr %blockret, align 4
call void (ptr, ...) @printf(ptr @.str)
call void (ptr, ...) @printf(ptr @.str.1)
store i32 12, ptr %blockret, align 4
br label %expr_block.exit
expr_block.exit: ; preds = %if.then
call void (ptr, ...) @printf(ptr @.str.5)
call void (ptr, ...) @printf(ptr @.str.6)