diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-23 14:22:18 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-10-23 14:22:18 +0000 |
commit | 73490b890977362d28dd6326843a1ecae413921d (patch) | |
tree | 3fdd91eae574e32453a4baf462961c742df2691a /include/clang/Analysis/Support/BumpVector.h | |
parent | a5f348eb914e67b51914117fac117c18c1f8d650 (diff) |
Diffstat (limited to 'include/clang/Analysis/Support/BumpVector.h')
-rw-r--r-- | include/clang/Analysis/Support/BumpVector.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Analysis/Support/BumpVector.h b/include/clang/Analysis/Support/BumpVector.h index a5e11a100665c..b23a80ed481a2 100644 --- a/include/clang/Analysis/Support/BumpVector.h +++ b/include/clang/Analysis/Support/BumpVector.h @@ -27,16 +27,16 @@ namespace clang { class BumpVectorContext { - llvm::PointerIntPair<llvm::BumpPtrAllocator*, 1, bool> Alloc; + llvm::PointerIntPair<llvm::BumpPtrAllocator*, 1> Alloc; public: /// Construct a new BumpVectorContext that creates a new BumpPtrAllocator /// and destroys it when the BumpVectorContext object is destroyed. - BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), true) {} + BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), 1) {} /// Construct a new BumpVectorContext that reuses an existing /// BumpPtrAllocator. This BumpPtrAllocator is not destroyed when the /// BumpVectorContext object is destroyed. - BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, false) {} + BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {} ~BumpVectorContext() { if (Alloc.getInt()) |