summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Stmt.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-07-04 23:09:02 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-07-04 23:09:02 +0000
commitd562d30a2064ea74f3c8a10c822dc53545abf17e (patch)
tree16f4f32fb60a438dd4c5af76f2a9067c8fe299f3 /clang/lib/AST/Stmt.cpp
parent025949c366c9015210eac09f11c0f846668b9992 (diff)
downloadbcm5719-llvm-d562d30a2064ea74f3c8a10c822dc53545abf17e.tar.gz
bcm5719-llvm-d562d30a2064ea74f3c8a10c822dc53545abf17e.zip
SuccIterator on bbs without terminator insts
Remove the assert that triggers if SuccIterator is constructed for a basic block without a terminator instruction. Instead of triggering an assert a succ_end() iterator is returned. This models a basic block with zero successors and allows us to use F->viewCFG() on incompletely constructed functions. llvm-svn: 134398
Diffstat (limited to 'clang/lib/AST/Stmt.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud