projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ebbf84
)
[NFC][IR] PHINode: ... and assert in another ctor too
author
Roman Lebedev
<lebedev.ri@gmail.com>
Tue, 27 Apr 2021 17:52:44 +0000
(20:52 +0300)
committer
Roman Lebedev
<lebedev.ri@gmail.com>
Tue, 27 Apr 2021 17:52:44 +0000
(20:52 +0300)
llvm/include/llvm/IR/Instructions.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/IR/Instructions.h
b/llvm/include/llvm/IR/Instructions.h
index
650746c
..
4aa34b0
100644
(file)
--- 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);
}