Skip to content

Conversation

kinu
Copy link
Contributor

@kinu kinu commented Sep 8, 2023

When we call getEnvironment, BlockToState[BlockId] for the block can return null even if CFCtx.isBlockReachable(B) returns true if it is called from a particular block that is marked unreachable to the block.

@kinu kinu requested review from a team as code owners September 8, 2023 09:27
@github-actions github-actions bot added the clang:dataflow Clang Dataflow Analysis framework - https://clang.llvm.org/docs/DataFlowAnalysisIntro.html label Sep 8, 2023
@kinu
Copy link
Contributor Author

kinu commented Sep 8, 2023

What do you think about this crash fix? @martinboehme @Xazax-hun @ymand

kinu added 2 commits September 8, 2023 13:17
…d block

When we call `getEnvironment`, `BlockToState[BlockId]` for the block can return
null even if CFCtx.isBlockReachable(B) returns true if it is called from a
particular block that is marked unreachable to the block.
(An example is in `EvaluateBlockWithUnreachablePreds` in TransferTest.cpp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:dataflow Clang Dataflow Analysis framework - https://clang.llvm.org/docs/DataFlowAnalysisIntro.html
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants