diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-30 05:14:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-30 05:14:00 +0000 |
commit | 628c13ad76fb4b7ce2f105c0e92644d1c39ee2f8 (patch) | |
tree | eed23e90144b620e1c0560e51488e567ca9d1f83 /test/Assembler/metadata.ll | |
parent | fa149ae923c32f80383d3585f7d5ea3bdae5ecf4 (diff) | |
download | external_llvm-628c13ad76fb4b7ce2f105c0e92644d1c39ee2f8.zip external_llvm-628c13ad76fb4b7ce2f105c0e92644d1c39ee2f8.tar.gz external_llvm-628c13ad76fb4b7ce2f105c0e92644d1c39ee2f8.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/Assembler/metadata.ll')
-rw-r--r-- | test/Assembler/metadata.ll | 4 |
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 |