mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +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);
|
||||
Assert1(PTy->getElementType()->isSized(), "Cannot allocate unsized type",
|
||||
&AI);
|
||||
Assert1(AI.getArraySize()->getType()->isInteger(32),
|
||||
"Alloca array size must be i32", &AI);
|
||||
visitInstruction(AI);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user