aboutsummaryrefslogtreecommitdiffstats
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
commitb11cdb3db7b5102c8a6a8fbf2a095efea6003767 (patch)
treef0a1ff832cb982865c53e4a350ba1b7d7d202380 /test/DebugInfo/2009-01-15-dbg_declare.ll
parentb41cbd325d707a2d7aad9e599f3dcbcb73f7271c (diff)
downloadexternal_llvm-b11cdb3db7b5102c8a6a8fbf2a095efea6003767.zip
external_llvm-b11cdb3db7b5102c8a6a8fbf2a095efea6003767.tar.gz
external_llvm-b11cdb3db7b5102c8a6a8fbf2a095efea6003767.tar.bz2
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 475949a..3f78d0d 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
}