We could use include/clang/Analysis/Support/BumpVector.h which simplifies things. For this the header file has to be moved to llvm/Support. http://clang.llvm.org/doxygen/BumpVector_8h_source.html. The vector class takes a BumpVectorContext(llvm::BumpPtrAllocator &A) http://reviews.llvm.org/D6518