[PATCH] D63538: [CFG] Add a new function to get the proper condition of a CFGBlock
Kristóf Umann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 3 15:34:12 PDT 2019
Szelethus updated this revision to Diff 207902.
Szelethus added a comment.
- Bail out if the actual terminator isn't a branch
- Bail out if the number of successors is less than 2
- LLVM-ify the code as suggested!
- Add some unit tests (I mean, you can kinda see how it was duct taped together, but it's maybe a hair better than nothing?)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63538/new/
https://reviews.llvm.org/D63538
Files:
clang/include/clang/Analysis/CFG.h
clang/lib/Analysis/CFG.cpp
clang/unittests/Analysis/CFGTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63538.207902.patch
Type: text/x-patch
Size: 4214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190703/585376b3/attachment.bin>
More information about the cfe-commits
mailing list