C#: Fix getInstructionOpcode to make sure IRConstruction.qll compiles for C#.

This commit is contained in:
Mathias Vorreiter Pedersen
2021-05-04 13:00:28 +02:00
parent ded377bcd2
commit 568724bffd

View File

@@ -165,10 +165,10 @@ import Cached
cached
private module Cached {
cached
Opcode getInstructionOpcode(TRawInstruction instr) {
predicate getInstructionOpcode(Opcode opcode, TRawInstruction instr) {
exists(TranslatedElement element, InstructionTag tag |
instructionOrigin(instr, element, tag) and
element.hasInstruction(result, tag, _)
element.hasInstruction(opcode, tag, _)
)
}