summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-06 02:29:44 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-06 02:29:44 +0000
commit35303fd739705b9167fb2596175e5cb397921566 (patch)
tree78b922fc24c6d8a6c3ce848fe3914da5346dc9f6 /llvm/test
parent6980404cfe7c18ee03369102843ddeaf21e64fcc (diff)
downloadbcm5719-llvm-35303fd739705b9167fb2596175e5cb397921566.tar.gz
bcm5719-llvm-35303fd739705b9167fb2596175e5cb397921566.zip
IR: Disallow function-local metadata attachments
Metadata attachments to instructions cannot be function-local. This is part of PR21532. llvm-svn: 223574
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Feature/metadata.ll2
-rw-r--r--llvm/test/Linker/metadata-a.ll6
-rw-r--r--llvm/test/Linker/metadata-b.ll2
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/Feature/metadata.ll b/llvm/test/Feature/metadata.ll
index 2a857bb9c6b..f83b7fe9c32 100644
--- a/llvm/test/Feature/metadata.ll
+++ b/llvm/test/Feature/metadata.ll
@@ -5,7 +5,7 @@ define void @foo(i32 %x) {
call void @llvm.zonk(metadata !1, i64 0, metadata !1)
store i32 0, i32* null, !whatever !0, !whatever_else !{}, !more !{metadata !"hello"}
store i32 0, i32* null, !whatever !{metadata !"hello", metadata !1, metadata !{}, metadata !2}
- ret void, !whatever !{i32 %x}
+ ret void
}
declare void @llvm.zonk(metadata, i64, metadata) nounwind readnone
diff --git a/llvm/test/Linker/metadata-a.ll b/llvm/test/Linker/metadata-a.ll
index 5a9d2e40b94..76a8c8cbfc7 100644
--- a/llvm/test/Linker/metadata-a.ll
+++ b/llvm/test/Linker/metadata-a.ll
@@ -1,15 +1,15 @@
; RUN: llvm-link %s %p/metadata-b.ll -S -o - | FileCheck %s
; CHECK: define void @foo(i32 %a)
-; CHECK: ret void, !attach !0, !also !{i32 %a}
+; CHECK: ret void, !attach !0
; CHECK: define void @goo(i32 %b)
-; CHECK: ret void, !attach !1, !and !{i32 %b}
+; CHECK: ret void, !attach !1
; CHECK: !0 = metadata !{i32 524334, void (i32)* @foo}
; CHECK: !1 = metadata !{i32 524334, void (i32)* @goo}
define void @foo(i32 %a) nounwind {
entry:
- ret void, !attach !0, !also !{ i32 %a }
+ ret void, !attach !0
}
!0 = metadata !{i32 524334, void (i32)* @foo}
diff --git a/llvm/test/Linker/metadata-b.ll b/llvm/test/Linker/metadata-b.ll
index ef0270af075..35d4f66ccba 100644
--- a/llvm/test/Linker/metadata-b.ll
+++ b/llvm/test/Linker/metadata-b.ll
@@ -3,7 +3,7 @@
define void @goo(i32 %b) nounwind {
entry:
- ret void, !attach !0, !and !{ i32 %b }
+ ret void, !attach !0
}
!0 = metadata !{i32 524334, void (i32)* @goo}
OpenPOWER on IntegriCloud