Skip to content

Commit 568724b

Browse files
committed
C#: Fix getInstructionOpcode to make sure IRConstruction.qll compiles for C#.
1 parent ded377b commit 568724b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/ql/src/experimental/ir/implementation/raw/internal/IRConstruction.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ import Cached
165165
cached
166166
private module Cached {
167167
cached
168-
Opcode getInstructionOpcode(TRawInstruction instr) {
168+
predicate getInstructionOpcode(Opcode opcode, TRawInstruction instr) {
169169
exists(TranslatedElement element, InstructionTag tag |
170170
instructionOrigin(instr, element, tag) and
171-
element.hasInstruction(result, tag, _)
171+
element.hasInstruction(opcode, tag, _)
172172
)
173173
}
174174

0 commit comments

Comments
 (0)