From: Anders Carlsson Date: Mon, 18 Apr 2011 04:55:06 +0000 (+0000) Subject: Use an empty ArrayRef instead of an empty std::vector for the Function::get overload... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8aa0f9042ddda5f4f25e30acaf7e4c44ee65a632;p=oota-llvm.git Use an empty ArrayRef instead of an empty std::vector for the Function::get overload that takes no parameters. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129686 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index cef7ec192d4..0402d469f34 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -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(), isVarArg); + return get(Result, ArrayRef(), isVarArg); } /// isValidReturnType - Return true if the specified type is valid as a return