fix an overly conservative caching issue that caused memdep to
[oota-llvm.git] / lib / CodeGen / TargetInstrInfoImpl.cpp
index 102e2a34a97e382ac439ba213a611c6e581e50ae..393e315a3214b09c8f27c9ad5d72749fc24e7165 100644 (file)
@@ -329,7 +329,7 @@ TargetInstrInfo::isReallyTriviallyReMaterializableGeneric(const MachineInstr *
       return false;
 
     // For the def, it should be the only def of that register.
-    if (MO.isDef() && (next(MRI.def_begin(Reg)) != MRI.def_end() ||
+    if (MO.isDef() && (llvm::next(MRI.def_begin(Reg)) != MRI.def_end() ||
                        MRI.isLiveIn(Reg)))
       return false;