C++: fix missing getPrimaryInstruction

This commit is contained in:
Robert Marsh
2019-10-16 17:05:37 -07:00
parent fffe3c2432
commit 30d7238921
9 changed files with 5 additions and 1580 deletions

View File

@@ -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