[llvm] r252078 - Warning fix.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 13:27:22 PST 2015
Author: rksimon
Date: Wed Nov 4 15:27:22 2015
New Revision: 252078
URL: http://llvm.org/viewvc/llvm-project?rev=252078&view=rev
Log:
Warning fix.
Modified:
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=252078&r1=252077&r2=252078&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Wed Nov 4 15:27:22 2015
@@ -5037,9 +5037,9 @@ MachineInstr *X86InstrInfo::foldMemoryOp
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
More information about the llvm-commits
mailing list