diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-18 22:11:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-18 22:11:42 +0000 |
commit | 2dfa8192abaad8a3c29132dba50e8b85218e918c (patch) | |
tree | 7ecaeba818b85f04e86b6d8b1fe51dd385134f51 /lib/CodeGen | |
parent | a1fa8f1d8afb5a2437144c6541e441e5ead6e147 (diff) |
remove hack
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 3a344a2660..6b0e2b2011 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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); } |