Merge pull request #20091 from aschackmull/java/fix-cfg-cp-assert

Java: Fix accidental CP in CFG for asserts.
This commit is contained in:
Anders Schack-Mulligen
2025-07-21 09:07:19 +02:00
committed by GitHub

View File

@@ -1621,7 +1621,8 @@ private module ControlFlowGraphImpl {
result.(AssertThrowNode).getAstNode() = assertstmt
)
or
last(assertstmt.getMessage(), n, NormalCompletion()) and
last(assertstmt.getMessage(), n, completion) and
completion = NormalCompletion() and
result.(AssertThrowNode).getAstNode() = assertstmt
)
or