mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
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:
parent
39b5abf507
commit
b80e3477d1
@ -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);
|
||||
}
|
||||
|
||||
/// @}
|
||||
|
Loading…
x
Reference in New Issue
Block a user