diff options
author | Ted Kremenek <kremenek@apple.com> | 2011-03-18 03:46:21 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2011-03-18 03:46:21 +0000 |
commit | 289bdccddf231fa971ea94af4fad2a62d34cbae0 (patch) | |
tree | caf605fcc5b32d1103b70c5f5f6b40282a354316 /include/llvm/Support/CrashRecoveryContext.h | |
parent | 0e8d588948cc4483f3f19e388d18e8a07c7574df (diff) | |
download | llvm-289bdccddf231fa971ea94af4fad2a62d34cbae0.tar.gz llvm-289bdccddf231fa971ea94af4fad2a62d34cbae0.tar.bz2 llvm-289bdccddf231fa971ea94af4fad2a62d34cbae0.tar.xz |
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
Diffstat (limited to 'include/llvm/Support/CrashRecoveryContext.h')
-rw-r--r-- | include/llvm/Support/CrashRecoveryContext.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <typename T> struct CrashRecoveryContextTrait { static inline CrashRecoveryContextCleanup *createCleanup(T *resource) { - return new CrashRecoveryContextDestructorCleanup<T>(resource); + return new CrashRecoveryContextDeleteCleanup<T>(resource); } }; |