File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
csharp/ql/src/semmle/code/csharp/ir/implementation/raw Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ module InstructionSanity {
48
48
or
49
49
(
50
50
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
53
53
) and
54
54
tag instanceof SideEffectOperandTag
55
55
)
Original file line number Diff line number Diff line change @@ -252,6 +252,9 @@ private module Cached {
252
252
.getInstructionArrayAccess ( getInstructionTag ( instruction ) )
253
253
}
254
254
255
+ cached
256
+ int getInstructionIndex ( Instruction instruction ) { none ( ) }
257
+
255
258
cached
256
259
Callable getInstructionFunction ( Instruction instruction ) {
257
260
result = getInstructionTranslatedElement ( instruction )
You can’t perform that action at this time.
0 commit comments