Fix error with if-else statements

This commit is contained in:
Michael Zhang 2022-04-08 03:02:54 -05:00
parent c51de77269
commit da39c73036
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B

View file

@ -162,6 +162,7 @@ fn convert_if_else(
println!("NOTHING"); println!("NOTHING");
} }
} }
builder.position_at_end(fail_branch);
builder.build_unconditional_branch(exit_block); builder.build_unconditional_branch(exit_block);
builder.position_at_end(exit_block); builder.position_at_end(exit_block);