summaryrefslogtreecommitdiff
path: root/test/DebugInfo/2009-01-15-dbg_declare.ll
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-01-19 21:00:48 +0000
committerDevang Patel <dpatel@apple.com>2009-01-19 21:00:48 +0000
commit0153308abf95e9c87e870768aa8fbf6f590d0f87 (patch)
treef0a1ff832cb982865c53e4a350ba1b7d7d202380 /test/DebugInfo/2009-01-15-dbg_declare.ll
parentb76ace310ad72f4c540f260ee18eef6674b15f31 (diff)
downloadllvm-0153308abf95e9c87e870768aa8fbf6f590d0f87.tar.gz
llvm-0153308abf95e9c87e870768aa8fbf6f590d0f87.tar.bz2
llvm-0153308abf95e9c87e870768aa8fbf6f590d0f87.tar.xz
Verify Intrinsic::dbg_declare.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/2009-01-15-dbg_declare.ll')
-rw-r--r--test/DebugInfo/2009-01-15-dbg_declare.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/DebugInfo/2009-01-15-dbg_declare.ll b/test/DebugInfo/2009-01-15-dbg_declare.ll
index 475949a14e..3f78d0d749 100644
--- a/test/DebugInfo/2009-01-15-dbg_declare.ll
+++ b/test/DebugInfo/2009-01-15-dbg_declare.ll
@@ -8,7 +8,9 @@ declare void @llvm.dbg.declare({ }*, { }*) nounwind
define i32 @isascii(i32 %_c) nounwind {
entry:
- call void @llvm.dbg.declare({ }* null, { }* bitcast (%llvm.dbg.variable.type* @llvm.dbg.variable24 to { }*))
+ %j = alloca i32
+ %0 = bitcast i32* %j to { }*
+ call void @llvm.dbg.declare({ }* %0, { }* bitcast (%llvm.dbg.variable.type* @llvm.dbg.variable24 to { }*))
unreachable
}