Make the empty StructType::get overload use an empty ArrayRef.
authorAnders Carlsson <andersca@mac.com>
Mon, 18 Apr 2011 14:02:06 +0000 (14:02 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 18 Apr 2011 14:02:06 +0000 (14:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129696 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DerivedTypes.h

index 0402d469f341feebfa6d5f68c2f8392057829def..f1cb33039f812462d2bbc76eb0f0da1dd2ef0341 100644 (file)
@@ -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<const Type*>(), isPacked);
+    return get(Context, llvm::ArrayRef<const Type*>(), isPacked);
   }
 
   /// StructType::get - This static method is a convenience method for