Skip to content

Fix #17334 where NCG did not properly update the CFG.

Andreas Klebinger requested to merge wip/andreask/17334 into master

Fix #17334 (closed) where NCG did not properly update the CFG.

Statements can change the basic block in which instructions
are placed during instruction selection.

We have to keep track of this switch of the current basic block
as we need this information in order to properly update the CFG.

This commit implements this change and fixes #17334.

We do so by having stmtToInstr return the new block id
if a statement changed the basic block.
Edited by Andreas Klebinger

Merge request reports