mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C++: Fix handling of unreached instructions in IRGuards
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user