From f6275309994dea2ec852c1f539875ae643646ec5 Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Sun, 24 Jul 2011 09:53:46 +0000 Subject: [PATCH] Omit explicit length here, now that I've had a chance to test this with gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135867 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/ArrayRef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/ArrayRef.h b/include/llvm/ADT/ArrayRef.h index a073f06af4d..33a8c651b23 100644 --- a/include/llvm/ADT/ArrayRef.h +++ b/include/llvm/ADT/ArrayRef.h @@ -190,7 +190,7 @@ namespace llvm { /// Construct an ArrayRef from a C array. template ArrayRef makeArrayRef(const T (&Arr)[N]) { - return ArrayRef(Arr, N); + return ArrayRef(Arr); } /// @} -- 2.34.1