[PATCH] D119447: [clang][dataflow] Include terminator statements in buildStmtToBasicBlockMap
Stanislav Gatev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 11 03:20:22 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG87c32be023d2: [clang][dataflow] Include terminator statements in buildStmtToBasicBlockMap (authored by sgatev).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119447/new/
https://reviews.llvm.org/D119447
Files:
clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
Index: clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
===================================================================
--- clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
+++ clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp
@@ -38,6 +38,8 @@
StmtToBlock[Stmt.getValue().getStmt()] = Block;
}
+ if (const Stmt *TerminatorStmt = Block->getTerminatorStmt())
+ StmtToBlock[TerminatorStmt] = Block;
}
return StmtToBlock;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119447.407826.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220211/b972038e/attachment-0001.bin>
More information about the cfe-commits
mailing list