summaryrefslogtreecommitdiff
path: root/test/DebugInfo/2010-05-03-OriginDIE.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/DebugInfo/2010-05-03-OriginDIE.ll
parent91b9763d53d12e5bb89a395daec9e12359e7adb4 (diff)
downloadllvm-9493dae613847b01b79914502f337814fe3e00ac.tar.gz
llvm-9493dae613847b01b79914502f337814fe3e00ac.tar.bz2
llvm-9493dae613847b01b79914502f337814fe3e00ac.tar.xz
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/DebugInfo/2010-05-03-OriginDIE.ll')
-rw-r--r--test/DebugInfo/2010-05-03-OriginDIE.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/DebugInfo/2010-05-03-OriginDIE.ll b/test/DebugInfo/2010-05-03-OriginDIE.ll
index 62f7600d7c..1ade045046 100644
--- a/test/DebugInfo/2010-05-03-OriginDIE.ll
+++ b/test/DebugInfo/2010-05-03-OriginDIE.ll
@@ -81,6 +81,6 @@ declare void @uuid_LtoB(i8*, i8*)
!30 = metadata !{i32 524310, metadata !3, metadata !"uint32_t", metadata !12, i32 55, i64 0, i64 0, i64 0, i32 0, metadata !31} ; [ DW_TAG_typedef ]
!31 = metadata !{i32 524324, metadata !3, metadata !"unsigned int", metadata !3, i32 0, i64 32, i64 32, i64 0, i32 0, i32 7} ; [ DW_TAG_base_type ]
!32 = metadata !{metadata !33}
-!33 = metadata !{i32 524321, i64 0, i64 1, i64 2} ; [ DW_TAG_subrange_type ]
+!33 = metadata !{i32 524321, i64 0, i64 2} ; [ DW_TAG_subrange_type ]
!34 = metadata !{i32 524544, metadata !24, metadata !"addr", metadata !10, i32 96, metadata !35} ; [ DW_TAG_auto_variable ]
!35 = metadata !{i32 524303, metadata !3, metadata !"", metadata !3, i32 0, i64 32, i64 32, i64 0, i32 0, metadata !11} ; [ DW_TAG_pointer_type ]