Skip to content

Commit ee3b40b

Browse files
committed
C#: sync changes and accept test output
1 parent a45a6e4 commit ee3b40b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

csharp/ql/src/semmle/code/csharp/ir/implementation/raw/Instruction.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ module InstructionSanity {
4848
or
4949
(
5050
opcode instanceof ReadSideEffectOpcode or
51-
opcode instanceof MayWriteSideEffectOpcode or
52-
opcode instanceof Opcode::InlineAsm
51+
opcode instanceof Opcode::InlineAsm or
52+
opcode instanceof Opcode::CallSideEffect
5353
) and
5454
tag instanceof SideEffectOperandTag
5555
)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ private module Cached {
252252
.getInstructionArrayAccess(getInstructionTag(instruction))
253253
}
254254

255+
cached
256+
int getInstructionIndex(Instruction instruction) { none() }
257+
255258
cached
256259
Callable getInstructionFunction(Instruction instruction) {
257260
result = getInstructionTranslatedElement(instruction)

0 commit comments

Comments
 (0)