File tree Expand file tree Collapse file tree
cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -466,7 +466,8 @@ private newtype TReturnKind =
466466 // (this approach includes functions declared that have no body; they may still have flow summaries)
467467 indirectionIndex =
468468 [ 0 .. max ( Cpp:: Function f |
469- |
469+ not exists ( f .getBlock ( ) )
470+ |
470471 Ssa:: getMaxIndirectionsForType ( f .getUnspecifiedType ( ) ) - 1 // -1 because a returned value is a prvalue not a glvalue
471472 ) ]
472473 } or
@@ -480,7 +481,8 @@ private newtype TReturnKind =
480481 // derive a possible return argument from the AST
481482 indirectionIndex =
482483 [ 0 .. max ( Cpp:: Function f |
483- |
484+ not exists ( f .getBlock ( ) )
485+ |
484486 Ssa:: getMaxIndirectionsForType ( f .getParameter ( argumentIndex ) .getUnspecifiedType ( ) ) - 1 // -1 because an argument is a prvalue not a glvalue
485487 ) ]
486488 }
You can’t perform that action at this time.
0 commit comments