diff options
author | Eric Christopher <echristo@apple.com> | 2010-10-11 21:37:35 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-10-11 21:37:35 +0000 |
commit | 050d16c2a978eda86a5b6dc56d6f0cea10963b9c (patch) | |
tree | 87b3d8362a4a6eda5fdead07f60283f354e40ab7 | |
parent | 1086c2b5daf0f7fc9b003f86f3726050672c5a80 (diff) |
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
-rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index cfe21c0df7..df3fe1bc27 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<AllocaInst>(Obj))) + assert(false && "Alloca should have been handled earlier!"); return false; } } |