[llvm-commits] [PATCH] SuccIterator on bbs without terminator insts

Tobias Grosser grosser at fim.uni-passau.de
Sun Jul 3 15:54:08 PDT 2011


Hi,

this patch removes 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.

OK to commit?

Tobi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-SuccIterator-on-bbs-without-terminator-insts.patch
Type: text/x-diff
Size: 1355 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110703/8831925a/attachment.patch>


More information about the llvm-commits mailing list