llvm.org GIT mirror llvm / 0153308
Verify Intrinsic::dbg_declare. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62526 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 11 years ago
3 changed file(s) with 8 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
13311331 switch (ID) {
13321332 default:
13331333 break;
1334 case Intrinsic::dbg_declare: // llvm.dbg.declare
1335 if (Constant *C = dyn_cast(CI.getOperand(1)))
1336 Assert1(C && !isa(C),
1337 "invalid llvm.dbg.declare intrinsic call", &CI);
1338 break;
13341339 case Intrinsic::memcpy:
13351340 case Intrinsic::memmove:
13361341 case Intrinsic::memset:
+0
-9
test/CodeGen/Generic/2006-03-27-DebugInfoNULLDeclare.ll less more
None ; RUN: llvm-as < %s | llc
1
2 declare void @llvm.dbg.declare({ }*, { }*)
3
4 define void @foo() {
5 call void @llvm.dbg.declare( { }* null, { }* null )
6 ret void
7 }
8
77
88 define i32 @isascii(i32 %_c) nounwind {
99 entry:
10 call void @llvm.dbg.declare({ }* null, { }* bitcast (%llvm.dbg.variable.type* @llvm.dbg.variable24 to { }*))
10 %j = alloca i32
11 %0 = bitcast i32* %j to { }*
12 call void @llvm.dbg.declare({ }* %0, { }* bitcast (%llvm.dbg.variable.type* @llvm.dbg.variable24 to { }*))
1113 unreachable
1214 }
1315