C++: More robust InterpretNode.asCall.

This commit is contained in:
Geoffrey White
2024-02-07 18:00:57 +00:00
parent e98485df7f
commit a354ab84e9

View File

@@ -113,7 +113,7 @@ module SourceSinkInterpretationInput implements
Node asNode() { this = TNode_(result) }
/** Gets the call that this node corresponds to, if any. */
DataFlowCall asCall() { this.asElement() = result.getAst() }
DataFlowCall asCall() { this.asElement() = result.getUnconvertedResultExpression() }
/** Gets the callable that this node corresponds to, if any. */
DataFlowCallable asCallable() { result.(Function) = this.asElement() }