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
This commit is contained in:
Ted Kremenek 2011-03-18 03:46:21 +00:00
parent 0e8d588948
commit 289bdccddf

View File

@ -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);
}
};