Skip to content

Commit 8acbb3b

Browse files
jbjRobert Marsh
authored andcommitted
C++: Further simplify a bit
This changes tuple counts!?
1 parent 5072201 commit 8acbb3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,13 +574,13 @@ module DefUse {
574574
// An odd offset corresponds to the `Chi` instruction.
575575
defOffset = oldOffset * 2 + 1 and
576576
result = Chi(oldInstr) and
577-
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
577+
defLocation = Alias::getResultMemoryLocation(oldInstr) and
578578
actualDefLocation = defLocation.getVirtualVariable()
579579
or
580580
// An even offset corresponds to the original instruction.
581581
defOffset = oldOffset * 2 and
582582
result = getNewInstruction(oldInstr) and
583-
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
583+
defLocation = Alias::getResultMemoryLocation(oldInstr) and
584584
actualDefLocation = defLocation
585585
)
586586
or

0 commit comments

Comments
 (0)