aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index cfe21c0..df3fe1b 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;
}
}