summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/debug-info-vla.c
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-09-18 22:08:57 +0000
committerAdrian Prantl <aprantl@apple.com>2013-09-18 22:08:57 +0000
commit95d3d1a9b2e5177d793f04cebfd1df01a435df44 (patch)
tree4267266f86eec349e4d395d610c53a9ac5b9f69b /test/CodeGen/debug-info-vla.c
parent2a9dfb0d5cd51652063befce43bc8681109aba76 (diff)
Debug info: Explicitly set the DIVariable::isIndirect() flag for VLAs.
This allows us to get rid of an ugly hack in the backend. Paired commit with LLVM. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/debug-info-vla.c')
-rw-r--r--test/CodeGen/debug-info-vla.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/debug-info-vla.c b/test/CodeGen/debug-info-vla.c
index 2e173e4a3f..7a8da960db 100644
--- a/test/CodeGen/debug-info-vla.c
+++ b/test/CodeGen/debug-info-vla.c
@@ -2,7 +2,7 @@
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]]]
+// CHECK: metadata !{i32 {{.*}}, metadata {{.*}}, metadata !"vla", metadata {{.*}}, i32 [[@LINE+1]], metadata {{.*}}, i32 8192, i32 0} ; [ DW_TAG_auto_variable ] [vla] [line [[@LINE+1]]]
int vla[s];
int i;
for (i = 0; i < s; i++) {