Fix backwards conditional.
authorJim Grosbach <grosbach@apple.com>
Wed, 20 Oct 2010 01:10:01 +0000 (01:10 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 20 Oct 2010 01:10:01 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116897 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMExpandPseudoInsts.cpp

index 39d7afa853dae58a117fb2218672df9836d639ae..0275a505e85e5bbe86dd09769d5155e017212957 100644 (file)
@@ -607,7 +607,7 @@ bool ARMExpandPseudo::ExpandMBB(MachineBasicBlock &MBB) {
                                         *TII);
         }
         // If there's dynamic realignment, adjust for it.
-        if (!RI.needsStackRealignment(MF)) {
+        if (RI.needsStackRealignment(MF)) {
           MachineFrameInfo  *MFI = MF.getFrameInfo();
           unsigned MaxAlign = MFI->getMaxAlignment();
           assert (!AFI->isThumb1OnlyFunction());