mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-08 15:24:21 +00:00
We're not going to handle dynamic allocas anywhere else.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -589,6 +589,8 @@ bool ARMFastISel::ARMComputeRegOffset(const Value *Obj, unsigned &Reg,
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
case Instruction::Alloca: {
|
case Instruction::Alloca: {
|
||||||
|
// Don't handle dynamic allocas.
|
||||||
|
if (FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Obj)))
|
||||||
assert(false && "Alloca should have been handled earlier!");
|
assert(false && "Alloca should have been handled earlier!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user