From cb769b2553b60b9f224b5788cdd8385e8b062cfe Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Tue, 31 Jul 2012 16:37:27 -0700 Subject: Make ARM var-arg regsave setup aware of byval stack args. Previously we had a LOCALMOD that disabled splitting "bvyal" arguments between the stack and registers, and only using the stack. However, this was not completely done. Var-args reg-saving was not aware of this change, and still attempted find any args following a byval in registers. http://codereview.chromium.org/10825082/ --- lib/CodeGen/CallingConvLower.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/CodeGen/CallingConvLower.cpp') diff --git a/lib/CodeGen/CallingConvLower.cpp b/lib/CodeGen/CallingConvLower.cpp index b2c976b2a5..81e237effb 100644 --- a/lib/CodeGen/CallingConvLower.cpp +++ b/lib/CodeGen/CallingConvLower.cpp @@ -33,6 +33,7 @@ CCState::CCState(CallingConv::ID CC, bool isVarArg, MachineFunction &mf, StackOffset = 0; clearFirstByValReg(); + clearHasByValInRegPosition(); // @LOCALMOD. UsedRegs.resize((TRI.getNumRegs()+31)/32); } -- cgit v1.2.3-18-g5258