Remove crash recovery cleanups from TypeLocBuilder. They were a bit error prone, only hit in rare cases.

llvm-svn: 128058
This commit is contained in:
Ted Kremenek 2011-03-22 01:15:21 +00:00
parent 022dbc1672
commit 288fb9dc6e
1 changed files with 1 additions and 7 deletions

View File

@ -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 @@ class TypeLocBuilder {
/// 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)