mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
C++: fix irreducible control flow logic
This commit is contained in:
committed by
Robert Marsh
parent
656b4fc1aa
commit
e90153fc47
@@ -70,7 +70,7 @@ predicate semBackEdge(SemSsaPhiNode phi, SemSsaVariable inp, SemSsaReadPositionP
|
||||
// Conservatively assume that every edge is a back edge if we don't have dominance information.
|
||||
(
|
||||
phi.getBasicBlock().bbDominates(edge.getOrigBlock()) or
|
||||
irreducibleSccEdge(phi.getBasicBlock(), edge.getOrigBlock()) or
|
||||
irreducibleSccEdge(edge.getOrigBlock(), phi.getBasicBlock()) or
|
||||
not edge.getOrigBlock().hasDominanceInformation()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user