Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git] / test / DebugInfo / 2009-01-15-dbg_declare.ll
blobab404afbd8a7170b1f9c26cb6342912a8217cf36
1 ; RUN: llc %s -o /dev/null
3         %llvm.dbg.variable.type = type { i32, { }*, i8*, { }*, i32, { }*, i8*, i8* }
4 @llvm.dbg.variable24 = external constant %llvm.dbg.variable.type                ; <%llvm.dbg.variable.type*> [#uses=1]
6 declare void @llvm.dbg.declare({ }*, { }*) nounwind
8 define i32 @isascii(i32 %_c) nounwind {
9 entry:
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 { }*))
13         unreachable