1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

Tweak CrashRecoveryContextCleanup::createCleanup() to use the 'delete' cleanup as opposed to the 'destructor' cleanup (reclaims more memory).

llvm-svn: 127865
This commit is contained in:
Ted Kremenek 2011-03-18 03:46:21 +00:00
parent 5327c64434
commit c7c75361fa

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