Skip to content
Commit 4f041651 authored by NAKAMURA Takumi's avatar NAKAMURA Takumi
Browse files

VMCore/BasicBlock.cpp: Don't assume BasicBlock::iterator might end with a...

VMCore/BasicBlock.cpp: Don't assume BasicBlock::iterator might end with a non-PHInode Instruction in successors.

Frontends(eg. clang) might pass incomplete form of IR, to step off the way beyond iterator end. In the case I had met, it took infinite loop due to meeting bogus PHInode.

Thanks to Jay Foad and John McCall.

llvm-svn: 137175
parent 5b64b810
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment