mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
C++: fix missing getPrimaryInstruction
This commit is contained in:
@@ -520,6 +520,11 @@ class TranslatedSideEffect extends TranslatedElement, TTranslatedArgumentSideEff
|
||||
op instanceof Opcode::IndirectReadSideEffect
|
||||
}
|
||||
|
||||
override Instruction getPrimaryInstructionForSideEffect(InstructionTag tag) {
|
||||
tag = OnlyInstructionTag() and
|
||||
result = getTranslatedExpr(call).getInstruction(CallTag())
|
||||
}
|
||||
|
||||
final override int getInstructionIndex(InstructionTag tag) {
|
||||
tag = OnlyInstructionTag() and
|
||||
result = index
|
||||
|
||||
Reference in New Issue
Block a user