summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces
diff options
context:
space:
mode:
authormartinboehme <mboehme@google.com>2024-07-29 11:24:26 +0200
committerGitHub <noreply@github.com>2024-07-29 11:24:26 +0200
commit0362a29905ab8d68a8eb48741840a514b66552f8 (patch)
treeabee5fcc9e974204984fd802a25023b98550514b /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces
parentd86311f293ebc3867733d4453e0d6c929e620d8b (diff)
[clang][dataflow] Fix bug in `buildContainsExprConsumedInDifferentBlock()`. (#100874)
This was missing a call to `ignoreCFGOmittedNodes()`. As a result, the function would erroneously conclude that a block did not contain an expression consumed in a different block if the expression in question was surrounded by a `ParenExpr` in the consuming block. The patch adds a test that triggers this scenario (and fails without the fix). To prevent this kind of bug in the future, the patch also adds a new method `blockForStmt()` to `AdornedCFG` that calls `ignoreCFGOmittedNodes()` and is preferred over accessing `getStmtToBlock()` directly.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces')
0 files changed, 0 insertions, 0 deletions