mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Eliminate the restriction that the array size in an alloca must be i32.
This will help reduce the amount of casting required on 64-bit targets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104911 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1371,8 +1371,8 @@ void Verifier::visitAllocaInst(AllocaInst &AI) {
|
||||
&AI);
|
||||
Assert1(PTy->getElementType()->isSized(), "Cannot allocate unsized type",
|
||||
&AI);
|
||||
Assert1(AI.getArraySize()->getType()->isIntegerTy(32),
|
||||
"Alloca array size must be i32", &AI);
|
||||
Assert1(AI.getArraySize()->getType()->isIntegerTy(),
|
||||
"Alloca array size must have integer type", &AI);
|
||||
visitInstruction(AI);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user