Skip to content

Commit fc7334a

Browse files
committed
C++: Fix ql-for-ql warning
1 parent 8c49470 commit fc7334a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCall.qll

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class TranslatedFunctionCall extends TranslatedCallExpr, TranslatedDirectCall {
364364
final override predicate mayThrowException(ExceptionEdge e) {
365365
this.mustThrowException(e)
366366
or
367-
exists(MicrosoftTryStmt t | t = expr.getEnclosingStmt().getParentStmt*()) and
367+
expr.getEnclosingStmt().getParentStmt*() instanceof MicrosoftTryStmt and
368368
e instanceof SehExceptionEdge
369369
}
370370

0 commit comments

Comments
 (0)