Skip to content
  • Andreas Klebinger's avatar
    Fix #17334 where NCG did not properly update the CFG. · c1bd07cd
    Andreas Klebinger authored and Marge Bot's avatar Marge Bot committed
    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.
    c1bd07cd