Skip to content

Commit 4f81484

Browse files
author
Dave Bartolomeo
authored
Merge pull request github#6050 from MathiasVP/fix-join-order-in-addressOperandAllocationAndOffset
C++: Fix join order in `addressOperandAllocationAndOffset`
2 parents bc4184e + 879bfbb commit 4f81484

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ predicate addressOperandAllocationAndOffset(
411411
allocation.getABaseInstruction() = base and
412412
hasBaseAndOffset(addrOperand, base, bitOffset) and
413413
not exists(Instruction previousBase |
414-
hasBaseAndOffset(addrOperand, previousBase, _) and
414+
hasBaseAndOffset(addrOperand, pragma[only_bind_out](previousBase), _) and
415415
previousBase = base.getAnOperand().getDef()
416416
)
417417
)

cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/AliasAnalysis.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ predicate addressOperandAllocationAndOffset(
411411
allocation.getABaseInstruction() = base and
412412
hasBaseAndOffset(addrOperand, base, bitOffset) and
413413
not exists(Instruction previousBase |
414-
hasBaseAndOffset(addrOperand, previousBase, _) and
414+
hasBaseAndOffset(addrOperand, pragma[only_bind_out](previousBase), _) and
415415
previousBase = base.getAnOperand().getDef()
416416
)
417417
)

csharp/ql/src/experimental/ir/implementation/unaliased_ssa/internal/AliasAnalysis.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ predicate addressOperandAllocationAndOffset(
411411
allocation.getABaseInstruction() = base and
412412
hasBaseAndOffset(addrOperand, base, bitOffset) and
413413
not exists(Instruction previousBase |
414-
hasBaseAndOffset(addrOperand, previousBase, _) and
414+
hasBaseAndOffset(addrOperand, pragma[only_bind_out](previousBase), _) and
415415
previousBase = base.getAnOperand().getDef()
416416
)
417417
)

0 commit comments

Comments
 (0)