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
Loading
Please register or sign in to comment