mirror of
https://github.com/intel/llvm.git
synced 2026-02-03 10:39:35 +08:00
We're not going to handle dynamic allocas anywhere else.
llvm-svn: 116240
This commit is contained in:
@@ -589,7 +589,9 @@ bool ARMFastISel::ARMComputeRegOffset(const Value *Obj, unsigned &Reg,
|
||||
default:
|
||||
break;
|
||||
case Instruction::Alloca: {
|
||||
assert(false && "Alloca should have been handled earlier!");
|
||||
// Don't handle dynamic allocas.
|
||||
if (FuncInfo.StaticAllocaMap.count(cast<AllocaInst>(Obj)))
|
||||
assert(false && "Alloca should have been handled earlier!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user