mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 15:51:54 +00:00
reject some invalid IR. We already assert and reject this from the
.ll parser, but PR6070 wants it in the verifier too. llvm-svn: 93756
This commit is contained in:
parent
db47c10171
commit
4104b0bccd
@ -1301,6 +1301,8 @@ void Verifier::visitAllocaInst(AllocaInst &AI) {
|
|||||||
&AI);
|
&AI);
|
||||||
Assert1(PTy->getElementType()->isSized(), "Cannot allocate unsized type",
|
Assert1(PTy->getElementType()->isSized(), "Cannot allocate unsized type",
|
||||||
&AI);
|
&AI);
|
||||||
|
Assert1(AI.getArraySize()->getType()->isInteger(32),
|
||||||
|
"Alloca array size must be i32", &AI);
|
||||||
visitInstruction(AI);
|
visitInstruction(AI);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user