Skip to content

Commit d6f6d67

Browse files
authored
Merge pull request #281 from kevinbackhouse/GlobalValueNumberingBugFix
Workaround for getFullyConverted returning multiple results.
2 parents 262cb99 + 6df9bc8 commit d6f6d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/valuenumbering/GlobalValueNumbering.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ private predicate analyzableLocalScopeVariable(VariableAccess access) {
312312
strictcount (SsaDefinition def, Variable v | def.getAUse(v) = access | v) = 1 and
313313
count (SsaDefinition def, Variable v
314314
| def.getAUse(v) = access
315-
| def.getDefiningValue(v)) <= 1 and
315+
| def.getDefiningValue(v).getFullyConverted()) <= 1 and
316316
not analyzableConst(access)
317317
}
318318

0 commit comments

Comments
 (0)