Use an empty ArrayRef instead of an empty std::vector for the Function::get overload...
authorAnders Carlsson <andersca@mac.com>
Mon, 18 Apr 2011 04:55:06 +0000 (04:55 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 18 Apr 2011 04:55:06 +0000 (04:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129686 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DerivedTypes.h

index cef7ec192d458beb1b6e8953e16e581e37297245..0402d469f341feebfa6d5f68c2f8392057829def 100644 (file)
@@ -167,7 +167,7 @@ public:
     const Type *Result, ///< The result type
     bool isVarArg  ///< Whether this is a variable argument length function
   ) {
-    return get(Result, std::vector<const Type *>(), isVarArg);
+    return get(Result, ArrayRef<const Type *>(), isVarArg);
   }
 
   /// isValidReturnType - Return true if the specified type is valid as a return