C++: Sync identical files

This commit is contained in:
Jonas Jensen
2020-03-24 16:46:42 +01:00
parent 27832148a9
commit 4e588869d8
2 changed files with 10 additions and 2 deletions

View File

@@ -73,14 +73,18 @@ private module Cached {
or
instruction.getOpcode() instanceof Opcode::InitializeNonLocal
or
// Chi instructions track virtual variables, and therefore a chi instruction is
// conflated if it's associated with the aliased virtual variable.
exists(OldInstruction oldInstruction | instruction = Chi(oldInstruction) |
Alias::getResultMemoryLocation(oldInstruction).getVirtualVariable() instanceof
Alias::AliasedVirtualVariable
)
or
// Phi instructions track locations, and therefore a phi instruction is
// conflated if it's associated with a conflated location.
exists(Alias::MemoryLocation location |
instruction = Phi(_, location) and
location.getVirtualVariable() instanceof Alias::AliasedVirtualVariable
not exists(location.getAllocation())
)
}