- Change MachineInstr::findRegisterDefOperandIdx so it can also look for defs
[oota-llvm.git] / lib / CodeGen / PreAllocSplitting.cpp
index 997e82f11db747a8e8832160cf4b2d848a29a72e..96e7327a7eb71888d918e96a48ef2c41689b136a 100644 (file)
@@ -882,7 +882,7 @@ MachineInstr* PreAllocSplitting::FoldSpill(unsigned vreg,
          !RefsInMBB.count(FoldPt))
     --FoldPt;
   
-  int OpIdx = FoldPt->findRegisterDefOperandIdx(vreg, false);
+  int OpIdx = FoldPt->findRegisterDefOperandIdx(vreg);
   if (OpIdx == -1)
     return 0;