summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-vla.c
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2018-02-13 07:49:34 +0000
committerSander de Smalen <sander.desmalen@arm.com>2018-02-13 07:49:34 +0000
commit9084a3b118498c2f6b6a179578d3e00ea6fd0ef7 (patch)
tree12771915439d3dc0a650844e49856a89c64fecf5 /clang/test/CodeGen/debug-info-vla.c
parent7873648f876be5a1ec9d8a1d51b469172b16703c (diff)
downloadbcm5719-llvm-9084a3b118498c2f6b6a179578d3e00ea6fd0ef7.tar.gz
bcm5719-llvm-9084a3b118498c2f6b6a179578d3e00ea6fd0ef7.zip
[DebugInfo] Avoid name conflict of generated VLA expression variable.
Summary: This patch also adds the 'DW_AT_artificial' flag to the generated variable. Addresses the issues mentioned in http://llvm.org/PR30553. Reviewers: CarlosAlbertoEnciso, probinson, aprantl Reviewed By: aprantl Subscribers: JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D43189 llvm-svn: 324988
Diffstat (limited to 'clang/test/CodeGen/debug-info-vla.c')
-rw-r--r--clang/test/CodeGen/debug-info-vla.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/debug-info-vla.c b/clang/test/CodeGen/debug-info-vla.c
index 35a219b955a..8bd6a6d0acb 100644
--- a/clang/test/CodeGen/debug-info-vla.c
+++ b/clang/test/CodeGen/debug-info-vla.c
@@ -2,9 +2,9 @@
void testVLAwithSize(int s)
{
-// CHECK-DAG: dbg.declare({{.*}} %vla_expr, metadata ![[VLAEXPR:[0-9]+]]
+// CHECK-DAG: dbg.declare({{.*}} %__vla_expr, metadata ![[VLAEXPR:[0-9]+]]
// CHECK-DAG: dbg.declare({{.*}} %vla, metadata ![[VAR:[0-9]+]]
-// CHECK-DAG: ![[VLAEXPR]] = !DILocalVariable(name: "vla_expr"
+// CHECK-DAG: ![[VLAEXPR]] = !DILocalVariable(name: "__vla_expr", {{.*}} flags: DIFlagArtificial
// CHECK-DAG: ![[VAR]] = !DILocalVariable(name: "vla",{{.*}} line: [[@LINE+2]]
// CHECK-DAG: !DISubrange(count: ![[VLAEXPR]])
int vla[s];
OpenPOWER on IntegriCloud