aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CallingConvLower.cpp
diff options
context:
space:
mode:
authorJan Voung <jvoung@google.com>2012-07-31 16:37:27 -0700
committerDerek Schuff <dschuff@chromium.org>2012-07-31 16:37:27 -0700
commitcb769b2553b60b9f224b5788cdd8385e8b062cfe (patch)
tree1f2e6074345fbce7f631832b0bde594974acde3d /lib/CodeGen/CallingConvLower.cpp
parent13d5be78ccbe988ac859279b469fb0ad8d24fc85 (diff)
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/
Diffstat (limited to 'lib/CodeGen/CallingConvLower.cpp')
-rw-r--r--lib/CodeGen/CallingConvLower.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}