Fix memory leak in the stackifier, due to the machinebasicblocks not holding
[oota-llvm.git] / lib / Target / X86 / X86FloatingPoint.cpp
index 7bc1f728f89515cb9b0f19dd7b916f194a686aad..b89347699653bd058ad59fd80657823644d58c72 100644 (file)
@@ -601,6 +601,7 @@ void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) {
   }
 
   I = MBB->erase(I)-1;  // Remove the pseudo instruction
+  delete MI;
 }
 
 namespace {