[llvm] r211097 - Fix memory leak of RegScavenger accidentally added in r211037.
James Molloy
james.molloy at arm.com
Tue Jun 17 05:31:41 PDT 2014
Author: jamesm
Date: Tue Jun 17 07:31:41 2014
New Revision: 211097
URL: http://llvm.org/viewvc/llvm-project?rev=211097&view=rev
Log:
Fix memory leak of RegScavenger accidentally added in r211037.
Modified:
llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp?rev=211097&r1=211096&r2=211097&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp Tue Jun 17 07:31:41 2014
@@ -1735,8 +1735,10 @@ bool ARMLoadStoreOpt::runOnMachineFuncti
isThumb1 = AFI->isThumbFunction() && !isThumb2;
// FIXME: Temporarily disabling for Thumb-1 due to miscompiles
- if (isThumb1)
+ if (isThumb1) {
+ delete RS;
return false;
+ }
bool Modified = false;
for (MachineFunction::iterator MFI = Fn.begin(), E = Fn.end(); MFI != E;
More information about the llvm-commits
mailing list