summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CallingConvLower.cpp
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2011-05-26 04:09:49 +0000
committerStuart Hastings <stuart@apple.com>2011-05-26 04:09:49 +0000
commit2aa0f23e1cb5afc96981ecc057980d1958c0be72 (patch)
tree30fa29d3781195e079138b08023978857c454f7e /lib/CodeGen/CallingConvLower.cpp
parent421b106872d9c8adb4f14d77a8c6a1afeaaa29f6 (diff)
downloadllvm-2aa0f23e1cb5afc96981ecc057980d1958c0be72.tar.gz
llvm-2aa0f23e1cb5afc96981ecc057980d1958c0be72.tar.bz2
llvm-2aa0f23e1cb5afc96981ecc057980d1958c0be72.tar.xz
Reverting 132105: it broke some LLVM-GCC DejaGNU tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CallingConvLower.cpp')
-rw-r--r--lib/CodeGen/CallingConvLower.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/CodeGen/CallingConvLower.cpp b/lib/CodeGen/CallingConvLower.cpp
index d9cadf090f..bfb6ba1023 100644
--- a/lib/CodeGen/CallingConvLower.cpp
+++ b/lib/CodeGen/CallingConvLower.cpp
@@ -48,13 +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) {
- 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.