mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
C++: fix chi instr oeprands to chi instrs
This commit is contained in:
@@ -573,13 +573,13 @@ module DefUse {
|
||||
// An odd offset corresponds to the `Chi` instruction.
|
||||
defOffset = oldOffset * 2 + 1 and
|
||||
result = Chi(oldInstr) and
|
||||
defLocation = Alias::getResultMemoryLocation(oldInstr) and
|
||||
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
|
||||
actualDefLocation = defLocation.getVirtualVariable()
|
||||
or
|
||||
// An even offset corresponds to the original instruction.
|
||||
defOffset = oldOffset * 2 and
|
||||
result = getNewInstruction(oldInstr) and
|
||||
defLocation = Alias::getResultMemoryLocation(oldInstr) and
|
||||
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
|
||||
actualDefLocation = defLocation
|
||||
)
|
||||
or
|
||||
|
||||
@@ -573,13 +573,13 @@ module DefUse {
|
||||
// An odd offset corresponds to the `Chi` instruction.
|
||||
defOffset = oldOffset * 2 + 1 and
|
||||
result = Chi(oldInstr) and
|
||||
defLocation = Alias::getResultMemoryLocation(oldInstr) and
|
||||
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
|
||||
actualDefLocation = defLocation.getVirtualVariable()
|
||||
or
|
||||
// An even offset corresponds to the original instruction.
|
||||
defOffset = oldOffset * 2 and
|
||||
result = getNewInstruction(oldInstr) and
|
||||
defLocation = Alias::getResultMemoryLocation(oldInstr) and
|
||||
hasNonPhiDefinition(_, defLocation, defBlock, defOffset) and
|
||||
actualDefLocation = defLocation
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user