[llvm-commits] [llvm] r127865 - /llvm/trunk/include/llvm/Support/CrashRecoveryContext.h

Ted Kremenek kremenek at apple.com
Thu Mar 17 20:46:21 PDT 2011


Author: kremenek
Date: Thu Mar 17 22:46:21 2011
New Revision: 127865

URL: http://llvm.org/viewvc/llvm-project?rev=127865&view=rev
Log:
Tweak CrashRecoveryContextCleanup::createCleanup() to use the 'delete' cleanup as opposed to the 'destructor' cleanup (reclaims more memory).

Modified:
    llvm/trunk/include/llvm/Support/CrashRecoveryContext.h

Modified: llvm/trunk/include/llvm/Support/CrashRecoveryContext.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CrashRecoveryContext.h?rev=127865&r1=127864&r2=127865&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CrashRecoveryContext.h (original)
+++ llvm/trunk/include/llvm/Support/CrashRecoveryContext.h Thu Mar 17 22:46:21 2011
@@ -132,7 +132,7 @@
 template <typename T>
 struct CrashRecoveryContextTrait {
   static inline CrashRecoveryContextCleanup *createCleanup(T *resource) {
-    return new CrashRecoveryContextDestructorCleanup<T>(resource);
+    return new CrashRecoveryContextDeleteCleanup<T>(resource);
   }
 };
 





More information about the llvm-commits mailing list