summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-04-18 04:55:06 +0000
committerAnders Carlsson <andersca@mac.com>2011-04-18 04:55:06 +0000
commit73a559fe93e7c683b2729db639056ee6c7f49815 (patch)
tree6f85fa59197b666bc84aec7c1be6b1f7b3d5dbb9
parent6483513a6dec0defe85a55a8792d22134e9eefa7 (diff)
downloadbcm5719-llvm-73a559fe93e7c683b2729db639056ee6c7f49815.tar.gz
bcm5719-llvm-73a559fe93e7c683b2729db639056ee6c7f49815.zip
Use an empty ArrayRef instead of an empty std::vector for the Function::get overload that takes no parameters.
llvm-svn: 129686
-rw-r--r--llvm/include/llvm/DerivedTypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/DerivedTypes.h b/llvm/include/llvm/DerivedTypes.h
index cef7ec192d4..0402d469f34 100644
--- a/llvm/include/llvm/DerivedTypes.h
+++ b/llvm/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
OpenPOWER on IntegriCloud