Arguments spilled on the stack before a function call may have
[oota-llvm.git] / lib / Target / X86 / X86FastISel.cpp
index a843a27d1b306bffd9a5dfc6c52ca2657968e380..5eabd7a756ff3feeceb1e195e144a6fd7ac3f588 100644 (file)
@@ -2906,7 +2906,7 @@ bool X86FastISel::fastLowerCall(CallLoweringInfo &CLI) {
   CCInfo.AnalyzeCallOperands(OutVTs, OutFlags, CC_X86);
 
   // Get a count of how many bytes are to be pushed on the stack.
-  unsigned NumBytes = CCInfo.getNextStackOffset();
+  unsigned NumBytes = CCInfo.getAlignedCallFrameSize();
 
   // Issue CALLSEQ_START
   unsigned AdjStackDown = TII.getCallFrameSetupOpcode();