From: Eric Christopher Date: Mon, 11 Oct 2010 21:37:35 +0000 (+0000) Subject: We're not going to handle dynamic allocas anywhere else. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=050d16c2a978eda86a5b6dc56d6f0cea10963b9c;p=oota-llvm.git 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 --- diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index cfe21c0df7b..df3fe1bc275 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -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(Obj))) + assert(false && "Alloca should have been handled earlier!"); return false; } }