We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 805b4d6 commit 1808886Copy full SHA for 1808886
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedExpr.qll
@@ -90,10 +90,9 @@ abstract class TranslatedExpr extends TranslatedElement {
90
final override TranslatedElement getChild(int id) {
91
result = this.getChildInternal(id)
92
or
93
- exists(int maxChildId, int destructorIndex |
94
- maxChildId = max(int childId | exists(this.getChildInternal(childId))) and
+ exists(int destructorIndex |
95
result = this.getImplicitDestructorCall(destructorIndex) and
96
- id = maxChildId + 1 + destructorIndex
+ id = this.getFirstDestructorCallIndex() + destructorIndex
97
)
98
}
99
0 commit comments