C++: Fix DefinitionByReferenceNode.toString

This predicate now has a value also for calls to function pointers.
This commit is contained in:
Jonas Jensen
2020-04-04 15:31:01 +02:00
parent 108d5177b8
commit d7332644f0

View File

@@ -246,6 +246,9 @@ class DefinitionByReferenceNode extends InstructionNode {
result =
instr.getPrimaryInstruction().(CallInstruction).getStaticCallTarget().getName() +
" output argument"
or
not exists(instr.getPrimaryInstruction().(CallInstruction).getStaticCallTarget()) and
result = "output argument"
}
}