mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-11-29 05:49:59 +00:00
Fix NY codegen wth folded guard + inlined for-loop (#561)
Fixes a ICE wth folded guard in inlined for-loop in NY. Closes #560 --------- Signed-off-by: xermicus <bigcyrill@hotmail.com>
This commit is contained in:
1 parent
5b92391c57
commit
9b177f6400
7 files changed
+235
-4
No files matched your search
@@ -4714,8 +4714,6 @@ impl<'ctx> LlvmCodegen<'ctx> {
|
||||
}
|
||||
} else {
|
||||
let entry_block = context.basic_block();
|
||||
context.build_conditional_branch(condition_bool, then_block, join_block)?;
|
||||
|
||||
let mut else_yields = Vec::new();
|
||||
for (index, input_value) in inputs.iter().enumerate() {
|
||||
else_yields.push(self.translate_value_as_word(
|
||||
@@ -4724,6 +4722,7 @@ impl<'ctx> LlvmCodegen<'ctx> {
|
||||
&format!("input_yield_{}", index),
|
||||
)?);
|
||||
}
|
||||
context.build_conditional_branch(condition_bool, then_block, join_block)?;
|
||||
phi_incoming.push((else_yields, entry_block));
|
||||
|
||||
context.set_basic_block(then_block);
|
||||
|
||||
Reference in new issue
Block a user