File tree Expand file tree Collapse file tree 2 files changed +105
-176
lines changed
lib/semmle/code/cpp/ir/implementation/raw/internal Expand file tree Collapse file tree 2 files changed +105
-176
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,11 @@ private predicate ignoreExprOnly(Expr expr) {
116
116
or
117
117
not translateFunction ( getEnclosingFunction ( expr ) ) and
118
118
not Raw:: varHasIRFunc ( getEnclosingVariable ( expr ) )
119
+ or
120
+ exists ( DeleteOrDeleteArrayExpr deleteExpr |
121
+ // Ignore the destructor call, because the duplicated qualifier breaks control flow.
122
+ deleteExpr .getDestructorCall ( ) = expr
123
+ )
119
124
}
120
125
121
126
/**
@@ -918,6 +923,7 @@ abstract class TranslatedElement extends TTranslatedElement {
918
923
* holds.
919
924
*/
920
925
abstract Instruction getInstructionSuccessorInternal ( InstructionTag tag , EdgeKind kind ) ;
926
+
921
927
/**
922
928
* Gets the successor instruction of the instruction that was generated by
923
929
* this element for tag `tag`. The successor edge kind is specified by `kind`.
You can’t perform that action at this time.
0 commit comments