Skip to content

Commit 86a018b

Browse files
author
Robert Marsh
committed
C++: overlapping def/use must share IRVariable
1 parent 20e67eb commit 86a018b

File tree

1 file changed

+1
-0
lines changed
  • cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/internal

1 file changed

+1
-0
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/internal/AliasedSSA.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ predicate hasUnknownOffset(VariableMemoryLocation vml, VirtualVariable vv) {
263263

264264

265265
Overlap getVariableMemoryLocationOverlap(VariableMemoryLocation def, VariableMemoryLocation use) {
266+
def.getVariable() = use.getVariable() and
266267
(
267268
exists(VirtualVariable vv, IntValue offset | isCoveredOffset(def, vv, offset) and isCoveredOffset(use, vv, offset))
268269
or

0 commit comments

Comments
 (0)