]> granicus.if.org Git - clang/commitdiff
BumpVectorContext: Use 'unsigned' integer type with PointerIntUnion instead of bool...
authorTed Kremenek <kremenek@apple.com>
Tue, 20 Oct 2009 05:49:17 +0000 (05:49 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 20 Oct 2009 05:49:17 +0000 (05:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84607 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/Support/BumpVector.h

index a5e11a100665cb824507c172edaa28551fe10b6c..b23a80ed481a25a5cd418377fc1e9371e737025e 100644 (file)
 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())