summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/array.ll
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-04 21:34:03 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-04 21:34:03 +0000
commitd7767125d5b8e12db826aa7dd761a82e63ec235b (patch)
treeb53f593b8c4cc364bcbb1e7ee12ad122618cdace /llvm/test/DebugInfo/array.ll
parent751afdc3d1583dab43064892c90eb864cd69cd37 (diff)
downloadbcm5719-llvm-d7767125d5b8e12db826aa7dd761a82e63ec235b.tar.gz
bcm5719-llvm-d7767125d5b8e12db826aa7dd761a82e63ec235b.zip
Use the 'count' attribute to calculate the upper bound of an array.
The count attribute is more accurate with regards to the size of an array. It also obviates the upper bound attribute in the subrange. We can also better handle an unbound array by setting the count to -1 instead of the lower bound to 1 and upper bound to 0. llvm-svn: 169312
Diffstat (limited to 'llvm/test/DebugInfo/array.ll')
-rw-r--r--llvm/test/DebugInfo/array.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/array.ll b/llvm/test/DebugInfo/array.ll
index fef8fbe4cf4..d1671ad2fd2 100644
--- a/llvm/test/DebugInfo/array.ll
+++ b/llvm/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, i64 -1} ; [ DW_TAG_subrange_type ]
+!10 = metadata !{i32 589857, 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}
OpenPOWER on IntegriCloud