summaryrefslogtreecommitdiffstats
path: root/llvm/test/Verifier
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-09-18 22:38:56 +0000
committerAdrian Prantl <aprantl@apple.com>2019-09-18 22:38:56 +0000
commit0779dffbd4a927d7bf9523482481248c51796907 (patch)
tree4f81626eff057e781360752c5a50bde2068a5b5c /llvm/test/Verifier
parent69a92352022338417f27bfa45c0471beb6a92cc7 (diff)
downloadbcm5719-llvm-0779dffbd4a927d7bf9523482481248c51796907.tar.gz
bcm5719-llvm-0779dffbd4a927d7bf9523482481248c51796907.zip
Remove the obsolete BlockByRefStruct flag from LLVM IR
DIFlagBlockByRefStruct is an unused DIFlag that originally was used by clang to express (Objective-)C block captures in debug info. For the last year Clang has been emitting complex DIExpressions to describe block captures instead, which makes all the code supporting this flag redundant. This patch removes the flag and all supporting "dead" code, so we can reuse the bit for something else in the future. Since this only affects debug info generated by Clang with the block extension this mostly affects Apple platforms and I don't have any bitcode compatibility concerns for removing this. The Verifier will reject debug info that uses the bit and thus degrade gracefully when LTO'ing older bitcode with a newer compiler. rdar://problem/44304813 Differential Revision: https://reviews.llvm.org/D67453 llvm-svn: 372272
Diffstat (limited to 'llvm/test/Verifier')
-rw-r--r--llvm/test/Verifier/blockbyref.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Verifier/blockbyref.ll b/llvm/test/Verifier/blockbyref.ll
index 037da7f0952..14d705647b7 100644
--- a/llvm/test/Verifier/blockbyref.ll
+++ b/llvm/test/Verifier/blockbyref.ll
@@ -1,6 +1,6 @@
; RUN: llvm-as -disable-output <%s 2>&1| FileCheck %s
-; CHECK: BlockByRef variable without complex expression
+; CHECK: DIBlockByRefStruct on DICompositeType is no longer supported
; CHECK: warning: ignoring invalid debug info
define void @foo() {
@@ -16,4 +16,4 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata)
!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)
+!3 = !DICompositeType(tag: DW_TAG_structure_type, flags: DIFlagReservedBit4)
OpenPOWER on IntegriCloud