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

Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2024-04-09 09:27:44 +01:00
committed by GitHub
parent 4fa53b63ae
commit 17c8fa3e84

View File

@@ -821,7 +821,7 @@ newtype TTranslatedElement =
// The set of destructors to invoke after a `throw`. These need to be special // The set of destructors to invoke after a `throw`. These need to be special
// cased because the edge kind following a throw is an `ExceptionEdge`, and // cased because the edge kind following a throw is an `ExceptionEdge`, and
// we need to make sure that the edge kind is still an `ExceptionEdge` after // we need to make sure that the edge kind is still an `ExceptionEdge` after
// all the destructors has run. // all the destructors have run.
TTranslatedDestructorsAfterThrow(ThrowExpr throw) { TTranslatedDestructorsAfterThrow(ThrowExpr throw) {
exists(DestructorCall dc | exists(DestructorCall dc |
dc = throw.getAnImplicitDestructorCall() and dc = throw.getAnImplicitDestructorCall() and