mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
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:
@@ -132,7 +132,7 @@ public:
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
struct CrashRecoveryContextTrait {
|
struct CrashRecoveryContextTrait {
|
||||||
static inline CrashRecoveryContextCleanup *createCleanup(T *resource) {
|
static inline CrashRecoveryContextCleanup *createCleanup(T *resource) {
|
||||||
return new CrashRecoveryContextDestructorCleanup<T>(resource);
|
return new CrashRecoveryContextDeleteCleanup<T>(resource);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user