Skip to content

Commit 79d5b88

Browse files
committed
C++: Remove redundant case
1 parent f6f9afe commit 79d5b88

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ private module Cached {
7676
exists(OldInstruction oldInstruction | instruction = Chi(oldInstruction) |
7777
Alias::getResultMemoryLocation(oldInstruction).getVirtualVariable() instanceof
7878
Alias::AliasedVirtualVariable
79-
or
80-
// If there is no memory location for a memory result, then it's unmodeled
81-
// and therefore conflated with every other unmodeled instruction.
82-
oldInstruction.hasMemoryResult() and
83-
not exists(Alias::getResultMemoryLocation(oldInstruction))
8479
)
8580
or
8681
exists(Alias::MemoryLocation location |

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ private module Cached {
7676
exists(OldInstruction oldInstruction | instruction = Chi(oldInstruction) |
7777
Alias::getResultMemoryLocation(oldInstruction).getVirtualVariable() instanceof
7878
Alias::AliasedVirtualVariable
79-
or
80-
// If there is no memory location for a memory result, then it's unmodeled
81-
// and therefore conflated with every other unmodeled instruction.
82-
oldInstruction.hasMemoryResult() and
83-
not exists(Alias::getResultMemoryLocation(oldInstruction))
8479
)
8580
or
8681
exists(Alias::MemoryLocation location |

csharp/ql/src/semmle/code/csharp/ir/implementation/unaliased_ssa/internal/SSAConstruction.qll

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ private module Cached {
7676
exists(OldInstruction oldInstruction | instruction = Chi(oldInstruction) |
7777
Alias::getResultMemoryLocation(oldInstruction).getVirtualVariable() instanceof
7878
Alias::AliasedVirtualVariable
79-
or
80-
// If there is no memory location for a memory result, then it's unmodeled
81-
// and therefore conflated with every other unmodeled instruction.
82-
oldInstruction.hasMemoryResult() and
83-
not exists(Alias::getResultMemoryLocation(oldInstruction))
8479
)
8580
or
8681
exists(Alias::MemoryLocation location |

0 commit comments

Comments
 (0)