We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d42e892 commit bdad9e1Copy full SHA for bdad9e1
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowUtil.qll
@@ -553,9 +553,11 @@ class SsaPhiNode extends Node, TSsaPhiNode {
553
cached
554
final Node getAnInput(boolean fromBackEdge) {
555
localFlowStep(result, this) and
556
- if phi.getBasicBlock().dominates(result.getBasicBlock())
557
- then fromBackEdge = true
558
- else fromBackEdge = false
+ exists(IRBlock bPhi, IRBlock bResult |
+ bPhi = phi.getBasicBlock() and bResult = result.getBasicBlock()
+ |
559
+ if bPhi.dominates(bResult) then fromBackEdge = true else fromBackEdge = false
560
+ )
561
}
562
563
/** Gets a node that is used as input to this phi node. */
0 commit comments