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 17c8fa3 commit c325a79Copy full SHA for c325a79
cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedElement.qll
@@ -287,7 +287,10 @@ private predicate isInConditionalEvaluation(Expr e) {
287
}
288
289
private predicate isConditionalTemporaryDestructorCall(DestructorCall dc) {
290
- isInConditionalEvaluation(dc.getQualifier().(ReuseExpr).getReusedExpr())
+ exists(TemporaryObjectExpr temp |
291
+ temp = dc.getQualifier().(ReuseExpr).getReusedExpr() and
292
+ isInConditionalEvaluation(temp)
293
+ )
294
295
296
/**
0 commit comments