[llvm-commits] [llvm] r129696 - /llvm/trunk/include/llvm/DerivedTypes.h

Anders Carlsson andersca at mac.com
Mon Apr 18 07:02:06 PDT 2011


Author: andersca
Date: Mon Apr 18 09:02:06 2011
New Revision: 129696

URL: http://llvm.org/viewvc/llvm-project?rev=129696&view=rev
Log:
Make the empty StructType::get overload use an empty ArrayRef.

Modified:
    llvm/trunk/include/llvm/DerivedTypes.h

Modified: llvm/trunk/include/llvm/DerivedTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DerivedTypes.h?rev=129696&r1=129695&r2=129696&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DerivedTypes.h (original)
+++ llvm/trunk/include/llvm/DerivedTypes.h Mon Apr 18 09:02:06 2011
@@ -250,7 +250,7 @@
   /// 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





More information about the llvm-commits mailing list