Skip to content

Commit e174123

Browse files
authored
Merge pull request #10337 from MathiasVP/fix-cartesian-product-in-range-analysis
C++: Remove CP in `getAPhiInput`
2 parents bf6e988 + ddeae09 commit e174123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/semantic/SemanticExprSpecific.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module SemanticExprConfig {
162162
predicate phi(SsaVariable v) { v.asInstruction() instanceof IR::PhiInstruction }
163163

164164
SsaVariable getAPhiInput(SsaVariable v) {
165-
exists(IR::PhiInstruction instr |
165+
exists(IR::PhiInstruction instr | v.asInstruction() = instr |
166166
result.asInstruction() = instr.getAnInput()
167167
or
168168
result.asOperand() = instr.getAnInputOperand()

0 commit comments

Comments
 (0)