From: Roman Lebedev Date: Tue, 27 Apr 2021 17:52:44 +0000 (+0300) Subject: [NFC][IR] PHINode: ... and assert in another ctor too X-Git-Tag: llvmorg-14-init~8301 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15f631cc78f8f2458b6da97eb20236023d452192;p=platform%2Fupstream%2Fllvm.git [NFC][IR] PHINode: ... and assert in another ctor too --- diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h index 650746c..4aa34b0 100644 --- a/llvm/include/llvm/IR/Instructions.h +++ b/llvm/include/llvm/IR/Instructions.h @@ -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); }