summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-18 22:11:42 +0000
committerChris Lattner <sabre@nondot.org>2005-10-18 22:11:42 +0000
commit8396a308a79484410a0c87b09594301944a5dc9c (patch)
tree2c66b753b8ffe6e39f4d188c373809f22cdba4bc
parent13a57822a1d0716403e17009f5ba426613285066 (diff)
downloadbcm5719-llvm-8396a308a79484410a0c87b09594301944a5dc9c.tar.gz
bcm5719-llvm-8396a308a79484410a0c87b09594301944a5dc9c.zip
remove hack
llvm-svn: 23797
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 3a344a26601..6b0e2b2011b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -151,9 +151,7 @@ FunctionLoweringInfo::FunctionLoweringInfo(TargetLowering &tli,
// FIXME: This could be made better with a preferred alignment hook in
// TargetData. It serves primarily to 8-byte align doubles for X86.
if (Align < TySize && TySize <= 8) Align = TySize;
-
- if (CUI->getValue()) // Don't produce zero sized stack objects
- TySize *= CUI->getValue(); // Get total allocated size.
+ TySize *= CUI->getValue(); // Get total allocated size.
StaticAllocaMap[AI] =
MF.getFrameInfo()->CreateStackObject((unsigned)TySize, Align);
}
OpenPOWER on IntegriCloud