From e98485df7f9484ee258eb25a1e4b2669bf0d377e Mon Sep 17 00:00:00 2001 From: Geoffrey White <40627776+geoffw0@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:53:22 +0000 Subject: [PATCH] Update cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll Co-authored-by: Mathias Vorreiter Pedersen --- .../lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll b/cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll index 1e8423d012b..91d50ca434d 100644 --- a/cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll +++ b/cpp/ql/lib/semmle/code/cpp/dataflow/internal/FlowSummaryImpl.qll @@ -119,7 +119,7 @@ module SourceSinkInterpretationInput implements DataFlowCallable asCallable() { result.(Function) = this.asElement() } /** Gets the target of this call, if any. */ - Element getCallTarget() { result = this.asCall().getAst().(Call).getTarget() } + Element getCallTarget() { result = this.asCall().getStaticCallTarget() } /** Gets a textual representation of this node. */ string toString() {