mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Incorrect defer/return value ordering in some cases.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user