Don't use a random type for the select condition,
[oota-llvm.git] / lib / CodeGen / PHIElimination.cpp
index 6dbc3dc299e4e4adc7835321186c4a3c5a990edc..bd389db31f3abcaf23b77759c17446e7c04b89cf 100644 (file)
@@ -38,7 +38,7 @@ namespace {
 
   public:
     static char ID; // Pass identification, replacement for typeid
-    PNE() : MachineFunctionPass((intptr_t)&ID) {}
+    PNE() : MachineFunctionPass(&ID) {}
 
     virtual bool runOnMachineFunction(MachineFunction &Fn);
     
@@ -354,7 +354,7 @@ void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB,
   }
     
   // Really delete the PHI instruction now!
-  delete MPhi;
+  MF.DeleteMachineInstr(MPhi);
   ++NumAtomic;
 }