diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-19 21:06:24 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-19 21:06:24 +0000 |
commit | e5718bacb9443b982c479cc6a338ee2ac7c38a5f (patch) | |
tree | 2f03e2a6ea7ec221630a95a0c0d8269ee5c047b4 /test | |
parent | 49428a29486325517cd21b712e748228c9d08ad0 (diff) | |
download | external_llvm-e5718bacb9443b982c479cc6a338ee2ac7c38a5f.zip external_llvm-e5718bacb9443b982c479cc6a338ee2ac7c38a5f.tar.gz external_llvm-e5718bacb9443b982c479cc6a338ee2ac7c38a5f.tar.bz2 |
call void @llvm.dbg.declare(metadata !{i32* null}, metadata !1)
is valid, but not useful, when variable identified by !1 is optimized away by the optimizer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/DebugInfo/2010-03-19-DbgDeclare.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/DebugInfo/2010-03-19-DbgDeclare.ll b/test/DebugInfo/2010-03-19-DbgDeclare.ll new file mode 100644 index 0000000..1f7a889 --- /dev/null +++ b/test/DebugInfo/2010-03-19-DbgDeclare.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -verify -disable-output + +define void @Foo(i32 %a, i32 %b) { +entry: + call void @llvm.dbg.declare(metadata !{i32* null}, metadata !1) + ret void +} + +!0 = metadata !{i32 662302, i32 26, metadata !1, null} +!1 = metadata !{i32 4, metadata !"foo"} + +declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone |