aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-30 05:14:00 +0000
committerChris Lattner <sabre@nondot.org>2009-12-30 05:14:00 +0000
commit7c3b40877e4b64e6f93c89e2e3f9ed05b65296a9 (patch)
treeeed23e90144b620e1c0560e51488e567ca9d1f83 /test
parent672be39d418189f78a4539ab28391591cee0366d (diff)
downloadexternal_llvm-7c3b40877e4b64e6f93c89e2e3f9ed05b65296a9.zip
external_llvm-7c3b40877e4b64e6f93c89e2e3f9ed05b65296a9.tar.gz
external_llvm-7c3b40877e4b64e6f93c89e2e3f9ed05b65296a9.tar.bz2
reimplement insertvalue/extractvalue metadata handling to not blindly
accept invalid input. Actually add a testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Assembler/metadata.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Assembler/metadata.ll b/test/Assembler/metadata.ll
index cdb6978..89668a3 100644
--- a/test/Assembler/metadata.ll
+++ b/test/Assembler/metadata.ll
@@ -5,11 +5,13 @@ define void @test() {
call void @llvm.dbg.func.start(metadata !"foo")
+ extractvalue {{i32, i32}, i32} undef, 0, 1, !foo !0
+
ret void, !foo !0, !bar !1
}
!0 = metadata !{i32 662302, i32 26, metadata !1, null}
-!1 = metadata !{i32 4}
+!1 = metadata !{i32 4, metadata !"foo"}
declare void @llvm.dbg.func.start(metadata) nounwind readnone