Hopefully fix some GCC-based buildbots. GCC apparently decays the array to a pointer here before overload resolution, so construct with an explicit length instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Frits van Bommel 2011-07-18 12:31:03 +00:00
parent 39b5abf507
commit b80e3477d1

View File

@ -190,7 +190,7 @@ namespace llvm {
/// Construct an ArrayRef from a C array.
template<typename T, size_t N>
ArrayRef<T> makeArrayRef(const T (&Arr)[N]) {
return Arr;
return ArrayRef<T>(Arr, N);
}
/// @}