Merge pull request #15021 from jketema/ir-guards-unreached-fix

C++: Fix handling of unreached instructions in IRGuards
This commit is contained in:
Jeroen Ketema
2023-12-06 12:46:09 +01:00
committed by GitHub
3 changed files with 20 additions and 0 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
}
}