From b161f6f635dbbae9e6c5a123a774b9131d4691ef Mon Sep 17 00:00:00 2001 From: Mathias Morbitzer Date: Tue, 28 Nov 2023 16:39:11 +0100 Subject: [PATCH] No more DFG Edges to FunctionDeclaration --- .../src/main/kotlin/de/fraunhofer/aisec/cpg/passes/DFGPass.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/DFGPass.kt b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/DFGPass.kt index 636eb21b9ee..cd1ef35d2aa 100644 --- a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/DFGPass.kt +++ b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/passes/DFGPass.kt @@ -401,7 +401,7 @@ class DFGPass(ctx: TranslationContext) : ComponentPass(ctx) { } else if (call.invokes.isNotEmpty()) { call.invokes.forEach { if (it.isInferred && inferDfgForUnresolvedSymbols) { - handleUnresolvedCalls(call, it) + handleUnresolvedCalls(call, call) } else { Util.attachCallParameters(it, call.arguments) }