Skip to content

Commit 29c4c8c

Browse files
committed
C#: Fixup to follow C++ changes
1 parent 999051d commit 29c4c8c

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

csharp/ql/src/semmle/code/csharp/ir/implementation/raw/internal/IRConstruction.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ private module Cached {
6969
cached
7070
predicate hasModeledMemoryResult(Instruction instruction) { none() }
7171

72+
cached
73+
predicate hasConflatedMemoryResult(Instruction instruction) {
74+
instruction instanceof UnmodeledDefinitionInstruction
75+
or
76+
instruction instanceof AliasedDefinitionInstruction
77+
or
78+
instruction.getOpcode() instanceof Opcode::InitializeNonLocal
79+
}
80+
7281
cached
7382
Expr getInstructionConvertedResultExpression(Instruction instruction) {
7483
exists(TranslatedExpr translatedExpr |

csharp/ql/test/library-tests/ir/ir/raw_ir_sanity.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ lostReachability
1616
backEdgeCountMismatch
1717
useNotDominatedByDefinition
1818
switchInstructionWithoutDefaultEdge
19+
notMarkedAsConflated
20+
wronglyMarkedAsConflated
1921
missingCanonicalLanguageType
2022
multipleCanonicalLanguageTypes
2123
missingIRType

csharp/ql/test/library-tests/ir/ir/unaliased_ssa_sanity.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ lostReachability
1616
backEdgeCountMismatch
1717
useNotDominatedByDefinition
1818
switchInstructionWithoutDefaultEdge
19+
notMarkedAsConflated
20+
wronglyMarkedAsConflated
1921
missingCanonicalLanguageType
2022
multipleCanonicalLanguageTypes
2123
missingIRType

0 commit comments

Comments
 (0)