Make the role of MVT::i32 clearer here, and add a
[oota-llvm.git] / lib / CodeGen / PrologEpilogInserter.cpp
index 10ba9c0256fc9c2e564a35a838f98256fe192e1f..95b6078335b406dc4bfcb3149603c835aeed50cb 100644 (file)
@@ -464,7 +464,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
   // works.
   if (!RegInfo->targetHandlesStackFrameRounding() &&
       (FFI->hasCalls() || FFI->hasVarSizedObjects() || 
-       RegInfo->needsStackRealignment(Fn))) {
+       (RegInfo->needsStackRealignment(Fn) &&
+        FFI->getObjectIndexEnd() != 0))) {
     // If we have reserved argument space for call sites in the function
     // immediately on entry to the current function, count it as part of the
     // overall stack size.