summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/debug-info-vla.c
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-04-18 01:22:01 +0000
committerAdrian Prantl <aprantl@apple.com>2017-04-18 01:22:01 +0000
commitc3782a1a6f9d32919763dd039359c0e1b8b450bc (patch)
treef1fc569e6da79052c2bf74086ed7d8632cf1b1a3 /clang/test/CodeGen/debug-info-vla.c
parent6825fb64e9f4a611c4006027c5c4495df0404ab1 (diff)
downloadbcm5719-llvm-c3782a1a6f9d32919763dd039359c0e1b8b450bc.tar.gz
bcm5719-llvm-c3782a1a6f9d32919763dd039359c0e1b8b450bc.zip
Debug Info: Remove special-casing of indirect function argument handling.
LLVM has changed the semantics of dbg.declare for describing function arguments. After this patch a dbg.declare always takes the *address* of a variable as the first argument, even if the argument is not an alloca. https://bugs.llvm.org/show_bug.cgi?id=32382 rdar://problem/31205000 llvm-svn: 300523
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 371d1060228..3b69773207b 100644
--- a/clang/test/CodeGen/debug-info-vla.c
+++ b/clang/test/CodeGen/debug-info-vla.c
@@ -4,8 +4,8 @@ void testVLAwithSize(int s)
{
// CHECK: dbg.declare
// CHECK: dbg.declare({{.*}}, metadata ![[VAR:.*]], metadata ![[EXPR:.*]])
-// CHECK: ![[VAR]] = !DILocalVariable(name: "vla",{{.*}} line: [[@LINE+2]]
-// CHECK: ![[EXPR]] = !DIExpression(DW_OP_deref)
+// CHECK: ![[EXPR]] = !DIExpression()
+// CHECK: ![[VAR]] = !DILocalVariable(name: "vla",{{.*}} line: [[@LINE+1]]
int vla[s];
int i;
for (i = 0; i < s; i++) {
OpenPOWER on IntegriCloud