Warning fix.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 4 Nov 2015 21:27:22 +0000 (21:27 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 4 Nov 2015 21:27:22 +0000 (21:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252078 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.cpp

index a5b3a12e9102c579146c69b2b1702d585d1dac1b..6049ddac785087bc65df9e76e1b1e73248b01036 100644 (file)
@@ -5037,9 +5037,9 @@ MachineInstr *X86InstrInfo::foldMemoryOperandImpl(
   MachineInstr *NewMI = nullptr;
 
   // Attempt to fold any custom cases we have.
-  if (NewMI =
+  if (MachineInstr *CustomMI =
           foldMemoryOperandCustom(MF, MI, OpNum, MOs, InsertPt, Size, Align))
-    return NewMI;
+    return CustomMI;
 
   // Folding a memory location into the two-address part of a two-address
   // instruction is different than folding it other places.  It requires