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