File tree Expand file tree Collapse file tree
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,13 +92,17 @@ abstract class TranslatedExpr extends TranslatedElement {
9292 or
9393 exists ( int maxChildId , int destructorIndex |
9494 maxChildId = max ( int childId | exists ( this .getChildInternal ( childId ) ) ) and
95- result . ( TranslatedExpr ) . getExpr ( ) = expr .getImplicitDestructorCall ( destructorIndex ) and
95+ result = this .getImplicitDestructorCall ( destructorIndex ) and
9696 id = maxChildId + 1 + destructorIndex
9797 )
9898 }
9999
100+ final private TranslatedExpr getImplicitDestructorCall ( int index ) {
101+ result .getExpr ( ) = expr .getImplicitDestructorCall ( index )
102+ }
103+
100104 final override predicate hasAnImplicitDestructorCall ( ) {
101- exists ( expr . getAnImplicitDestructorCall ( ) )
105+ exists ( this . getImplicitDestructorCall ( _ ) )
102106 }
103107
104108 final override int getFirstDestructorCallIndex ( ) {
You can’t perform that action at this time.
0 commit comments