mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 07:41:38 +00:00
Make sure that PHI node operands are first class types
llvm-svn: 9607
This commit is contained in:
parent
de2a4b2bb4
commit
034bfaddf0
@ -1756,6 +1756,8 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
||||
}
|
||||
| PHI_TOK PHIList {
|
||||
const Type *Ty = $2->front().first->getType();
|
||||
if (!Ty->isFirstClassType())
|
||||
ThrowException("PHI node operands must be of first class type!");
|
||||
$$ = new PHINode(Ty);
|
||||
$$->op_reserve($2->size()*2);
|
||||
while ($2->begin() != $2->end()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user