diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-04-18 01:22:01 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-04-18 01:22:01 +0000 |
commit | 7ee1354f0554cf8a9a20b6bf035366bd959efc1b (patch) | |
tree | 16179fd64d6a453e1cac1ab8f1800d4a57717e64 /test/CodeGen/debug-info-vla.c | |
parent | 9ea711133f6895cba2c401353964cc8718f12a73 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/debug-info-vla.c')
-rw-r--r-- | test/CodeGen/debug-info-vla.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/debug-info-vla.c b/test/CodeGen/debug-info-vla.c index 371d106022..3b69773207 100644 --- a/test/CodeGen/debug-info-vla.c +++ b/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++) { |