[cfe-commits] r128058 - /cfe/trunk/lib/Sema/TypeLocBuilder.h
Ted Kremenek
kremenek at apple.com
Mon Mar 21 18:15:21 PDT 2011
Author: kremenek
Date: Mon Mar 21 20:15:21 2011
New Revision: 128058
URL: http://llvm.org/viewvc/llvm-project?rev=128058&view=rev
Log:
Remove crash recovery cleanups from TypeLocBuilder. They were a bit error prone, only hit in rare cases.
Modified:
cfe/trunk/lib/Sema/TypeLocBuilder.h
Modified: cfe/trunk/lib/Sema/TypeLocBuilder.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/TypeLocBuilder.h?rev=128058&r1=128057&r2=128058&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/TypeLocBuilder.h (original)
+++ cfe/trunk/lib/Sema/TypeLocBuilder.h Mon Mar 21 20:15:21 2011
@@ -18,7 +18,6 @@
#include "clang/AST/TypeLoc.h"
#include "llvm/ADT/SmallVector.h"
#include "clang/AST/ASTContext.h"
-#include "llvm/Support/CrashRecoveryContext.h"
namespace clang {
@@ -43,14 +42,9 @@
/// The inline buffer.
char InlineBuffer[InlineCapacity];
- llvm::CrashRecoveryContextCleanupRegistrar cleanupBuffer;
-
public:
TypeLocBuilder()
- : Buffer(InlineBuffer), Capacity(InlineCapacity), Index(InlineCapacity),
- cleanupBuffer(llvm::CrashRecoveryContextCleanup::create<TypeLocBuilder>(
- this, llvm::CrashRecoveryContextCleanup::DestructorCleanup))
- {}
+ : Buffer(InlineBuffer), Capacity(InlineCapacity), Index(InlineCapacity) {}
~TypeLocBuilder() {
if (Buffer != InlineBuffer)
More information about the cfe-commits
mailing list