[llvm-commits] CVS: llvm/lib/Target/X86/FloatingPoint.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Dec 20 04:13:05 PST 2003


Changes in directory llvm/lib/Target/X86:

FloatingPoint.cpp updated: 1.14 -> 1.15

---
Log message:

Fix memory leak in the stackifier, due to the machinebasicblocks not holding
instructions on an ilist


---
Diffs of the changes:  (+1 -0)

Index: llvm/lib/Target/X86/FloatingPoint.cpp
diff -u llvm/lib/Target/X86/FloatingPoint.cpp:1.14 llvm/lib/Target/X86/FloatingPoint.cpp:1.15
--- llvm/lib/Target/X86/FloatingPoint.cpp:1.14	Sat Dec 20 03:58:55 2003
+++ llvm/lib/Target/X86/FloatingPoint.cpp	Sat Dec 20 04:12:17 2003
@@ -601,6 +601,7 @@
   }
 
   I = MBB->erase(I)-1;  // Remove the pseudo instruction
+  delete MI;
 }
 
 namespace {





More information about the llvm-commits mailing list