summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-vla.c
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-07-09 20:29:03 +0000
committerAdrian Prantl <aprantl@apple.com>2013-07-09 20:29:03 +0000
commit7278788ffe42497b8d88ec08b0e35ee4b63c1e7a (patch)
tree1125e27585cd44fd5d7c23040f5603955eff75fd /clang/test/CodeGen/debug-info-vla.c
parent418d1d1ea912eadd5c119a98ec5735c36a9e0221 (diff)
downloadbcm5719-llvm-7278788ffe42497b8d88ec08b0e35ee4b63c1e7a.tar.gz
bcm5719-llvm-7278788ffe42497b8d88ec08b0e35ee4b63c1e7a.zip
Reapply an improved version of r180816/180817.
Do not generate VLAs as complex variables any more, as they are now correctly represented as breg+0 locations in the backend. (Paired commit with LLVM: r185966) rdar://problem/13658587 llvm-svn: 185967
Diffstat (limited to 'clang/test/CodeGen/debug-info-vla.c')
-rw-r--r--clang/test/CodeGen/debug-info-vla.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/CodeGen/debug-info-vla.c b/clang/test/CodeGen/debug-info-vla.c
index 20fb6aace41..2e173e4a3f6 100644
--- a/clang/test/CodeGen/debug-info-vla.c
+++ b/clang/test/CodeGen/debug-info-vla.c
@@ -1,9 +1,8 @@
// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s
-// CHECK: metadata !{i32 {{.*}}, metadata {{.*}}, metadata !"vla", metadata {{.*}}, i32 7, metadata {{.*}}, i32 0, i32 0, i64 2} ; [ DW_TAG_auto_variable ]
-
void testVLAwithSize(int s)
{
+// CHECK: metadata !{i32 {{.*}}, metadata {{.*}}, metadata !"vla", metadata {{.*}}, i32 [[@LINE+1]], metadata {{.*}}, i32 0, i32 0} ; [ DW_TAG_auto_variable ] [vla] [line [[@LINE+1]]]
int vla[s];
int i;
for (i = 0; i < s; i++) {
OpenPOWER on IntegriCloud