[llvm-commits] [llvm] r116240 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Eric Christopher
echristo at apple.com
Mon Oct 11 14:37:35 PDT 2010
Author: echristo
Date: Mon Oct 11 16:37:35 2010
New Revision: 116240
URL: http://llvm.org/viewvc/llvm-project?rev=116240&view=rev
Log:
We're not going to handle dynamic allocas anywhere else.
Modified:
llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=116240&r1=116239&r2=116240&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Mon Oct 11 16:37:35 2010
@@ -589,7 +589,9 @@
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;
}
}
More information about the llvm-commits
mailing list