From 289bdccddf231fa971ea94af4fad2a62d34cbae0 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 18 Mar 2011 03:46:21 +0000 Subject: Tweak CrashRecoveryContextCleanup::createCleanup() to use the 'delete' cleanup as opposed to the 'destructor' cleanup (reclaims more memory). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127865 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CrashRecoveryContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/Support/CrashRecoveryContext.h') diff --git a/include/llvm/Support/CrashRecoveryContext.h b/include/llvm/Support/CrashRecoveryContext.h index f76ae3e3d4..40b5286d90 100644 --- a/include/llvm/Support/CrashRecoveryContext.h +++ b/include/llvm/Support/CrashRecoveryContext.h @@ -132,7 +132,7 @@ public: template struct CrashRecoveryContextTrait { static inline CrashRecoveryContextCleanup *createCleanup(T *resource) { - return new CrashRecoveryContextDestructorCleanup(resource); + return new CrashRecoveryContextDeleteCleanup(resource); } }; -- cgit v1.2.3