llvm-svn: 50169
This commit is contained in:
Anton Korobeynikov 2008-04-23 18:24:25 +00:00
parent 965babda19
commit 0d6df367f1
1 changed files with 1 additions and 1 deletions

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()));
}