diff --git a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCall.qll b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCall.qll index 35a8badb68fca..a1d76bb649172 100644 --- a/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCall.qll +++ b/cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/TranslatedCall.qll @@ -364,7 +364,7 @@ class TranslatedFunctionCall extends TranslatedCallExpr, TranslatedDirectCall { final override predicate mayThrowException(ExceptionEdge e) { this.mustThrowException(e) or - exists(MicrosoftTryStmt t | t = expr.getEnclosingStmt().getParentStmt*()) and + expr.getEnclosingStmt().getParentStmt*() instanceof MicrosoftTryStmt and e instanceof SehExceptionEdge }