diff options
author | Duncan Sands <baldrick@free.fr> | 2010-05-04 20:09:25 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-05-04 20:09:25 +0000 |
commit | 55cd6cb141777b1a1d64060828adafeff80b3986 (patch) | |
tree | 55b33109267a401f736a031a4b844d3dcbfad2b5 /test | |
parent | 34414a634e0e98cc4c2e3a9c31f0e959884736b6 (diff) | |
download | external_llvm-55cd6cb141777b1a1d64060828adafeff80b3986.zip external_llvm-55cd6cb141777b1a1d64060828adafeff80b3986.tar.gz external_llvm-55cd6cb141777b1a1d64060828adafeff80b3986.tar.bz2 |
Use llvm.foo as the intrinsic, rather than llvm.dbg.value. Since the
values passed to llvm.dbg.value were not valid for the intrinsic, it
might have caused trouble one day if the verifier ever started checking
for valid debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/GlobalOpt/metadata.ll | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Transforms/GlobalOpt/metadata.ll b/test/Transforms/GlobalOpt/metadata.ll index d5521bf..730e2b0 100644 --- a/test/Transforms/GlobalOpt/metadata.ll +++ b/test/Transforms/GlobalOpt/metadata.ll @@ -13,15 +13,14 @@ define i32 @main(i32 %argc, i8** %argv) { } define void @foo(i32 %x) { - call void @llvm.dbg.value(metadata !{i8*** @G, i32 %x}, i64 0, metadata !1) -; CHECK: call void @llvm.dbg.value(metadata !{null, i32 %x}, i64 0, metadata !1) + call void @llvm.foo(metadata !{i8*** @G, i32 %x}) +; CHECK: call void @llvm.foo(metadata !{null, i32 %x}) ret void } -declare void @llvm.dbg.value(metadata, i64, metadata) nounwind readnone +declare void @llvm.foo(metadata) nounwind readnone !named = !{!0} !0 = metadata !{i8*** @G} ; CHECK: !0 = metadata !{null} -!1 = metadata !{i8* null} |