Tweak CrashRecoveryContextCleanup::createCleanup() to use the 'delete' cleanup as...
authorTed Kremenek <kremenek@apple.com>
Fri, 18 Mar 2011 03:46:21 +0000 (03:46 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 18 Mar 2011 03:46:21 +0000 (03:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127865 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CrashRecoveryContext.h

index f76ae3e3d4904397f2fd62ed54b5fc58208034e8..40b5286d901d651ac6433396f35fff4da1169566 100644 (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);
   }
 };