summaryrefslogtreecommitdiffstats
path: root/llvm/test/Verifier
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-09-08 00:21:55 +0000
committerAdrian Prantl <aprantl@apple.com>2018-09-08 00:21:55 +0000
commit609bf369525b2e982564243d6767841a6fc2ea2d (patch)
treea598f630f7f3c8f4acc92d428b2b2a983956bd6c /llvm/test/Verifier
parent4357ca653a3deeddbfa6d4d0420ea994554da6a2 (diff)
downloadbcm5719-llvm-609bf369525b2e982564243d6767841a6fc2ea2d.tar.gz
bcm5719-llvm-609bf369525b2e982564243d6767841a6fc2ea2d.zip
Remove addBlockByrefAddress(), it is dead code as far as clang is concerned.
This patch removes addBlockByrefAddress(), it is dead code as far as clang is concerned: Every byref block capture is emitted with a complex expression that is equivalent to what this function does. rdar://problem/31629055 Differential Revision: https://reviews.llvm.org/D51763 llvm-svn: 341737
Diffstat (limited to 'llvm/test/Verifier')
-rw-r--r--llvm/test/Verifier/blockbyref.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/Verifier/blockbyref.ll b/llvm/test/Verifier/blockbyref.ll
new file mode 100644
index 00000000000..037da7f0952
--- /dev/null
+++ b/llvm/test/Verifier/blockbyref.ll
@@ -0,0 +1,19 @@
+; RUN: llvm-as -disable-output <%s 2>&1| FileCheck %s
+
+; CHECK: BlockByRef variable without complex expression
+; CHECK: warning: ignoring invalid debug info
+
+define void @foo() {
+entry:
+ %s = alloca i32
+ call void @llvm.dbg.declare(metadata i32* %s, metadata !2, metadata !DIExpression()), !dbg !DILocation(scope: !1)
+ ret void
+}
+
+declare void @llvm.dbg.declare(metadata, metadata, metadata)
+
+!llvm.module.flags = !{!0}
+!0 = !{i32 2, !"Debug Info Version", i32 3}
+!1 = distinct !DISubprogram()
+!2 = !DILocalVariable(scope: !1, type: !3)
+!3 = !DICompositeType(tag: DW_TAG_structure_type, flags: DIFlagBlockByrefStruct)
OpenPOWER on IntegriCloud