aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/dbg-subrange.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
commit9493dae613847b01b79914502f337814fe3e00ac (patch)
treea226d132d41fbb221f379e5d5099b28a3e13af70 /test/CodeGen/X86/dbg-subrange.ll
parent91b9763d53d12e5bb89a395daec9e12359e7adb4 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/dbg-subrange.ll')
-rw-r--r--test/CodeGen/X86/dbg-subrange.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/dbg-subrange.ll b/test/CodeGen/X86/dbg-subrange.ll
index 5ef79162d9..0efb50e9a9 100644
--- a/test/CodeGen/X86/dbg-subrange.ll
+++ b/test/CodeGen/X86/dbg-subrange.ll
@@ -31,7 +31,7 @@ entry:
!14 = metadata !{i32 720897, null, metadata !"", null, i32 0, i64 34359738368, i64 8, i32 0, i32 0, metadata !15, metadata !16, i32 0, i32 0} ; [ DW_TAG_array_type ]
!15 = metadata !{i32 720932, null, metadata !"char", null, i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
!16 = metadata !{metadata !17}
-!17 = metadata !{i32 720929, i64 0, i64 4294967295, i64 4294967296} ; [ DW_TAG_subrange_type ]
+!17 = metadata !{i32 720929, i64 0, i64 4294967296} ; [ DW_TAG_subrange_type ]
!18 = metadata !{i32 5, i32 3, metadata !19, null}
!19 = metadata !{i32 720907, metadata !5, i32 4, i32 1, metadata !6, i32 0} ; [ DW_TAG_lexical_block ]
!20 = metadata !{i32 6, i32 1, metadata !19, null}