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