llvm-svn: 50169
This commit is contained in:
Anton Korobeynikov 2008-04-23 18:24:25 +00:00
parent 372e69e652
commit 4b572e0f73

View File

@ -283,7 +283,7 @@ bool X86RegisterInfo::needsStackRealignment(const MachineFunction &MF) const {
// FIXME: Currently we don't support stack realignment for functions with
// variable-sized allocas
return (MFI->getMaxAlignment() &&
return (RealignStack &&
(MFI->getMaxAlignment() > StackAlign &&
!MFI->hasVarSizedObjects()));
}