[PATCH] D25757: Fix splitBasicBlock API

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 24 14:23:25 PDT 2016


MatzeB added a comment.

In https://reviews.llvm.org/D25757#578003, @sabuasal wrote:

> What if it is a basic block that only has a terminator instruction without any Phi nodes?  is that an allowed basic block in LLVM?


That is fine, but then this loop should have no problem because that terminator will return nullptr for dyn_cast<PHINode>.


https://reviews.llvm.org/D25757





More information about the llvm-commits mailing list