diff --git a/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll b/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll index 21ba13cea95..e35d064257b 100644 --- a/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll +++ b/go/ql/lib/semmle/go/controlflow/ControlFlowGraphShared.qll @@ -366,6 +366,8 @@ module GoCfg { or n instanceof Go::BasicLit or + n instanceof Go::FuncLit + or n instanceof Go::CallExpr and not n = any(Go::DeferStmt defer).getCall() and not n = any(Go::GoStmt go_).getCall()