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
This commit is contained in:
Anders Carlsson 2011-04-18 04:55:06 +00:00
parent 06c6d9aeb0
commit 8aa0f9042d

View 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