From: Anders Carlsson Date: Mon, 18 Apr 2011 14:02:06 +0000 (+0000) Subject: Make the empty StructType::get overload use an empty ArrayRef. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=43c361ff2e9a426dfb7bed2807921f79a9e6d21b;p=oota-llvm.git Make the empty StructType::get overload use an empty ArrayRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129696 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index 0402d469f34..f1cb33039f8 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -250,7 +250,7 @@ public: /// StructType::get - Create an empty structure type. /// static StructType *get(LLVMContext &Context, bool isPacked=false) { - return get(Context, std::vector(), isPacked); + return get(Context, llvm::ArrayRef(), isPacked); } /// StructType::get - This static method is a convenience method for