[cfe-commits] r128057 - /cfe/trunk/lib/AST/RecordLayoutBuilder.cpp

Ted Kremenek kremenek at apple.com
Mon Mar 21 18:15:19 PDT 2011


Author: kremenek
Date: Mon Mar 21 20:15:19 2011
New Revision: 128057

URL: http://llvm.org/viewvc/llvm-project?rev=128057&view=rev
Log:
Simplify crash recovery cleanup registration.

Modified:
    cfe/trunk/lib/AST/RecordLayoutBuilder.cpp

Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=128057&r1=128056&r2=128057&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Mon Mar 21 20:15:19 2011
@@ -1709,9 +1709,8 @@
       Builder.reset(new MSRecordLayoutBuilder(*this, &EmptySubobjects));
     }
     // Recover resources if we crash before exiting this method.
-    llvm::CrashRecoveryContextCleanupRegistrar
-      RecordBuilderCleanup(llvm::CrashRecoveryContextCleanup::
-                        create<RecordLayoutBuilder>(Builder.get()));
+    llvm::CrashRecoveryContextCleanupRegistrar<RecordLayoutBuilder>
+      RecordBuilderCleanup(Builder.get());
     
     Builder->Layout(RD);
 





More information about the cfe-commits mailing list