diff options
author | Anders Carlsson <andersca@mac.com> | 2011-04-18 04:55:06 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-04-18 04:55:06 +0000 |
commit | 8aa0f9042ddda5f4f25e30acaf7e4c44ee65a632 (patch) | |
tree | a8d86959b89354efaad71b3f136d321b4f4bcf07 | |
parent | 06c6d9aeb047004bedc2bc2f8bf83214577ef17b (diff) |
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
-rw-r--r-- | include/llvm/DerivedTypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index cef7ec192d..0402d469f3 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<const Type *>(), isVarArg); + return get(Result, ArrayRef<const Type *>(), isVarArg); } /// isValidReturnType - Return true if the specified type is valid as a return |