From 8aa0f9042ddda5f4f25e30acaf7e4c44ee65a632 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Mon, 18 Apr 2011 04:55:06 +0000 Subject: [PATCH] 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 --- include/llvm/DerivedTypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1