[llvm-commits] [llvm] r135867 - /llvm/trunk/include/llvm/ADT/ArrayRef.h
Frits van Bommel
fvbommel at gmail.com
Sun Jul 24 02:53:47 PDT 2011
Author: fvbommel
Date: Sun Jul 24 04:53:46 2011
New Revision: 135867
URL: http://llvm.org/viewvc/llvm-project?rev=135867&view=rev
Log:
Omit explicit length here, now that I've had a chance to test this with gcc.
Modified:
llvm/trunk/include/llvm/ADT/ArrayRef.h
Modified: llvm/trunk/include/llvm/ADT/ArrayRef.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ArrayRef.h?rev=135867&r1=135866&r2=135867&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ArrayRef.h (original)
+++ llvm/trunk/include/llvm/ADT/ArrayRef.h Sun Jul 24 04:53:46 2011
@@ -190,7 +190,7 @@
/// Construct an ArrayRef from a C array.
template<typename T, size_t N>
ArrayRef<T> makeArrayRef(const T (&Arr)[N]) {
- return ArrayRef<T>(Arr, N);
+ return ArrayRef<T>(Arr);
}
/// @}
More information about the llvm-commits
mailing list