diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-04 06:21:27 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-04 06:21:27 +0000 |
commit | 1ca9862cfb16641189ba8aff513193af142cd43c (patch) | |
tree | e7251ca4903f74397fc35ba83dc68ce2d20d59f9 /clang/test/CodeGenCXX/debug-info-flex-member.cpp | |
parent | bfc0e5725f94a52e92d8f53ab5285a8a0eb1a314 (diff) | |
download | bcm5719-llvm-1ca9862cfb16641189ba8aff513193af142cd43c.tar.gz bcm5719-llvm-1ca9862cfb16641189ba8aff513193af142cd43c.zip |
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.
llvm-svn: 169219
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-flex-member.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-flex-member.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-flex-member.cpp b/clang/test/CodeGenCXX/debug-info-flex-member.cpp index b6aa6dac6bc..d38634cacf0 100644 --- a/clang/test/CodeGenCXX/debug-info-flex-member.cpp +++ b/clang/test/CodeGenCXX/debug-info-flex-member.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s -// CHECK: metadata !{i32 {{.*}}, i64 1, i64 0} ; [ DW_TAG_subrange_type ] +// CHECK: metadata !{i32 {{.*}}, i64 1, i64 0, i64 -1} ; [ DW_TAG_subrange_type ] struct StructName { int member[]; |