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 | 608f5a6d48b18eaa52dddf2e20d475b55c24ede6 (patch) | |
tree | 2f03e2a6ea7ec221630a95a0c0d8269ee5c047b4 /test | |
parent | 5a129712465fc433d5b2b1d70a8839ec25ce8e9d (diff) | |
download | external_llvm-608f5a6d48b18eaa52dddf2e20d475b55c24ede6.zip external_llvm-608f5a6d48b18eaa52dddf2e20d475b55c24ede6.tar.gz external_llvm-608f5a6d48b18eaa52dddf2e20d475b55c24ede6.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 |