Skip to content

Commit 0e766aa

Browse files
committed
C++: Remove redundant lines.
1 parent 7430fde commit 0e766aa

File tree

1 file changed

+1
-5
lines changed
  • cpp/ql/lib/semmle/code/cpp/ir/implementation/aliased_ssa/internal

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -688,11 +688,7 @@ private Overlap getExtentOverlap(MemoryLocation0 def, MemoryLocation0 use) {
688688
(
689689
// EntireAllocationMemoryLocation exactly overlaps itself.
690690
use instanceof EntireAllocationMemoryLocation and
691-
(
692-
def.getAnAllocation() = use.getAnAllocation() or
693-
not exists(def.getAnAllocation()) or
694-
not exists(def.getAnAllocation())
695-
) and
691+
def.getAnAllocation() = use.getAnAllocation() and
696692
result instanceof MustExactlyOverlap
697693
or
698694
not use instanceof EntireAllocationMemoryLocation and

0 commit comments

Comments
 (0)