forked from OSchip/llvm-project
[NFC][IR] PHINode: ... and assert in another ctor too
This commit is contained in:
parent
1ebbf84ba4
commit
15f631cc78
|
@ -2592,6 +2592,7 @@ class PHINode : public Instruction {
|
|||
BasicBlock *InsertAtEnd)
|
||||
: Instruction(Ty, Instruction::PHI, nullptr, 0, InsertAtEnd),
|
||||
ReservedSpace(NumReservedValues) {
|
||||
assert(!Ty->isTokenTy() && "PHI nodes cannot have token type!");
|
||||
setName(NameStr);
|
||||
allocHungoffUses(ReservedSpace);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue