mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
reject some invalid IR. We already assert and reject this from the
.ll parser, but PR6070 wants it in the verifier too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
097ea8315f
commit
b905b09f21
@ -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…
Reference in New Issue
Block a user