diff --git a/python/ql/lib/semmle/python/types/FunctionObject.qll b/python/ql/lib/semmle/python/types/FunctionObject.qll index c293a43d675..eb2f1e07c8b 100644 --- a/python/ql/lib/semmle/python/types/FunctionObject.qll +++ b/python/ql/lib/semmle/python/types/FunctionObject.qll @@ -183,6 +183,7 @@ class PyFunctionObject extends FunctionObject { } /** Factored out to help join ordering */ + pragma[noinline] private predicate implicitlyReturns(Object none_, ClassObject noneType) { noneType = theNoneType() and not this.getFunction().isGenerator() and