diff options
author | Stuart Hastings <stuart@apple.com> | 2011-05-17 16:59:46 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2011-05-17 16:59:46 +0000 |
commit | 6db2c2fe216637f4120899c7734a8600c64af0e8 (patch) | |
tree | 505a46f5199a7336eb130fe9aed4b1a33ccfe73b /lib/CodeGen/CallingConvLower.cpp | |
parent | 504421e327a5af90dbb42f33086b6db6f6738477 (diff) |
Revert 131467 due to buildbot complaint.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CallingConvLower.cpp')
-rw-r--r-- | lib/CodeGen/CallingConvLower.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/CodeGen/CallingConvLower.cpp b/lib/CodeGen/CallingConvLower.cpp index 7768e28979..bfb6ba1023 100644 --- a/lib/CodeGen/CallingConvLower.cpp +++ b/lib/CodeGen/CallingConvLower.cpp @@ -48,12 +48,8 @@ void CCState::HandleByVal(unsigned ValNo, MVT ValVT, if (MinAlign > (int)Align) Align = MinAlign; TM.getTargetLowering()->HandleByVal(const_cast<CCState*>(this), Size); - if (Size != 0) { - unsigned Offset = AllocateStack(Size, Align); - addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo)); - } else { - addLoc(CCValAssign::getReg(ValNo, ValVT, getFirstByValReg(), LocVT, LocInfo)); - } + unsigned Offset = AllocateStack(Size, Align); + addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo)); } /// MarkAllocated - Mark a register and all of its aliases as allocated. |