mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
C++: Remove redundant case
This commit is contained in:
@@ -76,11 +76,6 @@ private module Cached {
|
||||
exists(OldInstruction oldInstruction | instruction = Chi(oldInstruction) |
|
||||
Alias::getResultMemoryLocation(oldInstruction).getVirtualVariable() instanceof
|
||||
Alias::AliasedVirtualVariable
|
||||
or
|
||||
// If there is no memory location for a memory result, then it's unmodeled
|
||||
// and therefore conflated with every other unmodeled instruction.
|
||||
oldInstruction.hasMemoryResult() and
|
||||
not exists(Alias::getResultMemoryLocation(oldInstruction))
|
||||
)
|
||||
or
|
||||
exists(Alias::MemoryLocation location |
|
||||
|
||||
@@ -76,11 +76,6 @@ private module Cached {
|
||||
exists(OldInstruction oldInstruction | instruction = Chi(oldInstruction) |
|
||||
Alias::getResultMemoryLocation(oldInstruction).getVirtualVariable() instanceof
|
||||
Alias::AliasedVirtualVariable
|
||||
or
|
||||
// If there is no memory location for a memory result, then it's unmodeled
|
||||
// and therefore conflated with every other unmodeled instruction.
|
||||
oldInstruction.hasMemoryResult() and
|
||||
not exists(Alias::getResultMemoryLocation(oldInstruction))
|
||||
)
|
||||
or
|
||||
exists(Alias::MemoryLocation location |
|
||||
|
||||
Reference in New Issue
Block a user