projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leak in the stackifier, due to the machinebasicblocks not holding
[oota-llvm.git]
/
lib
/
Target
/
X86
/
X86FloatingPoint.cpp
diff --git
a/lib/Target/X86/X86FloatingPoint.cpp
b/lib/Target/X86/X86FloatingPoint.cpp
index 7bc1f728f89515cb9b0f19dd7b916f194a686aad..b89347699653bd058ad59fd80657823644d58c72 100644
(file)
--- a/
lib/Target/X86/X86FloatingPoint.cpp
+++ b/
lib/Target/X86/X86FloatingPoint.cpp
@@
-601,6
+601,7
@@
void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) {
}
I = MBB->erase(I)-1; // Remove the pseudo instruction
+ delete MI;
}
namespace {