C++: Implement dbartol's suggestion.

This commit is contained in:
Geoffrey White
2024-10-08 14:44:45 +01:00
parent f9fa52fe77
commit 4a131dd8f1
2 changed files with 1 additions and 80 deletions

View File

@@ -687,8 +687,7 @@ private Overlap getExtentOverlap(MemoryLocation0 def, MemoryLocation0 use) {
def instanceof EntireAllocationMemoryLocation and
(
// EntireAllocationMemoryLocation exactly overlaps itself.
use instanceof EntireAllocationMemoryLocation and
//def.getAnAllocation() = use.getAnAllocation() and
use = def and
result instanceof MustExactlyOverlap
or
not use instanceof EntireAllocationMemoryLocation and