summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-flex-member.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-11-13 02:31:58 +0000
committerBill Wendling <isanbard@gmail.com>2012-11-13 02:31:58 +0000
commit2415b3b6b0c4eeb47c53cc0f908040d106b4d024 (patch)
tree1889d4e85ca8e188e2acae8a3fa68e826655c63c /clang/test/CodeGenCXX/debug-info-flex-member.cpp
parentf454dfb6b5af1ff34602577b5f546c3370be315e (diff)
downloadbcm5719-llvm-2415b3b6b0c4eeb47c53cc0f908040d106b4d024.tar.gz
bcm5719-llvm-2415b3b6b0c4eeb47c53cc0f908040d106b4d024.zip
Use the 'count' attribute instead of the 'upper_bound' attribute.
If we have a type 'int a[1]' and a type 'int b[0]', the generated DWARF is the same for both of them because we use the 'upper_bound' attribute. Instead use the 'count' attrbute, which gives the correct number of elements in the array. <rdar://problem/12566646> llvm-svn: 167807
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-flex-member.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-flex-member.cpp2
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..72a5bf8461e 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 0} ; [ DW_TAG_subrange_type ]
struct StructName {
int member[];
OpenPOWER on IntegriCloud