[llvm-commits] [llvm] r129686 - /llvm/trunk/include/llvm/DerivedTypes.h
Anders Carlsson
andersca at mac.com
Sun Apr 17 21:55:06 PDT 2011
Author: andersca
Date: Sun Apr 17 23:55:06 2011
New Revision: 129686
URL: http://llvm.org/viewvc/llvm-project?rev=129686&view=rev
Log:
Use an empty ArrayRef instead of an empty std::vector for the Function::get overload that takes no parameters.
Modified:
llvm/trunk/include/llvm/DerivedTypes.h
Modified: llvm/trunk/include/llvm/DerivedTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DerivedTypes.h?rev=129686&r1=129685&r2=129686&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DerivedTypes.h (original)
+++ llvm/trunk/include/llvm/DerivedTypes.h Sun Apr 17 23:55:06 2011
@@ -167,7 +167,7 @@
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
More information about the llvm-commits
mailing list