remove hack
authorChris Lattner <sabre@nondot.org>
Tue, 18 Oct 2005 22:11:42 +0000 (22:11 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Oct 2005 22:11:42 +0000 (22:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23797 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 3a344a26601ef292474c7cf0757a188b6ed52260..6b0e2b2011b73e60c0f93623e7cab1c1e2e64133 100644 (file)
@@ -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);
       }