From a7645a3c66668da5e2bc772a8e5ab03dc301610c Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 4 Dec 2012 06:20:49 +0000 Subject: Add a 'count' field to the DWARF subrange. The count field is necessary because there isn't a difference between the 'lo' and 'hi' attributes for a one-element array and a zero-element array. When the count is '0', we know that this is a zero-element array. When it's >=1, then it's a normal constant sized array. When it's -1, then the array is unbounded. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169218 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/DebugInfo/array.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/DebugInfo/array.ll') diff --git a/test/DebugInfo/array.ll b/test/DebugInfo/array.ll index 9f592a1..fef8fbe 100644 --- a/test/DebugInfo/array.ll +++ b/test/DebugInfo/array.ll @@ -29,6 +29,6 @@ declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone ;CHECK-NOT: DW_AT_lower_bound ;CHECK-NOT: DW_AT_upper_bound ;CHECK-NEXT: End Of Children Mark -!10 = metadata !{i32 589857, i64 1, i64 0} ; [ DW_TAG_subrange_type ] +!10 = metadata !{i32 589857, i64 1, i64 0, i64 -1} ; [ DW_TAG_subrange_type ] !11 = metadata !{i32 4, i32 7, metadata !7, null} !12 = metadata !{i32 5, i32 3, metadata !7, null} -- cgit v1.1