It is pointless to turn a UINT_TO_FP into an
[oota-llvm.git] / lib / CodeGen / PHIElimination.cpp
index 6dbc3dc299e4e4adc7835321186c4a3c5a990edc..ceba842970d3005e474a3bec805546065b7643c9 100644 (file)
@@ -354,7 +354,7 @@ void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB,
   }
     
   // Really delete the PHI instruction now!
-  delete MPhi;
+  MF.DeleteMachineInstr(MPhi);
   ++NumAtomic;
 }