Skip to content

Commit 4a131dd

Browse files
committed
C++: Implement dbartol's suggestion.
1 parent f9fa52f commit 4a131dd

File tree

2 files changed

+1
-80
lines changed

2 files changed

+1
-80
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,7 @@ private Overlap getExtentOverlap(MemoryLocation0 def, MemoryLocation0 use) {
687687
def instanceof EntireAllocationMemoryLocation and
688688
(
689689
// EntireAllocationMemoryLocation exactly overlaps itself.
690-
use instanceof EntireAllocationMemoryLocation and
691-
//def.getAnAllocation() = use.getAnAllocation() and
690+
use = def and
692691
result instanceof MustExactlyOverlap
693692
or
694693
not use instanceof EntireAllocationMemoryLocation and

0 commit comments

Comments
 (0)