C++: Fix handling of unreached instructions in IRGuards

This commit is contained in:
Jeroen Ketema
2023-12-06 09:59:42 +01:00
parent d6e30cd828
commit 4390e4cad3
2 changed files with 3 additions and 1 deletions

View File

@@ -223,6 +223,9 @@ private class GuardConditionFromIR extends GuardCondition {
or
instr = tce.getInstruction(ConditionValueFalseTempAddressTag())
)
or
// Exclude unreached instructions, as their AST is the whole function and not a block.
instr instanceof UnreachedInstruction
}
}