1; RUN: llc < %s -mtriple=arm64-apple-darwin
2
3; rdar://9146594
4
5source_filename = "test/CodeGen/AArch64/arm64-2011-03-17-AsmPrinterCrash.ll"
6
7; Function Attrs: nounwind ssp
8define void @drt_vsprintf() #0 {
9entry:
10  %do_tab_convert = alloca i32, align 4
11  br i1 undef, label %if.then24, label %if.else295, !dbg !11
12
13if.then24:                                        ; preds = %entry
14  unreachable
15
16if.else295:                                       ; preds = %entry
17  call void @llvm.dbg.declare(metadata i32* %do_tab_convert, metadata !14, metadata !16), !dbg !17
18  store i32 0, i32* %do_tab_convert, align 4, !dbg !18
19  unreachable
20}
21
22; Function Attrs: nounwind readnone
23declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
24
25attributes #0 = { nounwind ssp }
26attributes #1 = { nounwind readnone }
27
28!llvm.dbg.cu = !{!0}
29!llvm.module.flags = !{!9, !10}
30
31!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, globals: !2)
32!1 = !DIFile(filename: "print.i", directory: "/Volumes/Ebi/echeng/radars/r9146594")
33!2 = !{!3}
34!3 = !DIGlobalVariableExpression(var: !4, expr: !DIExpression())
35!4 = !DIGlobalVariable(name: "vsplive", scope: !5, file: !1, line: 617, type: !8, isLocal: true, isDefinition: true)
36!5 = distinct !DISubprogram(name: "drt_vsprintf", scope: !1, file: !1, line: 616, type: !6, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0)
37!6 = !DISubroutineType(types: !7)
38!7 = !{!8}
39!8 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
40!9 = !{i32 2, !"Debug Info Version", i32 3}
41!10 = !{i32 2, !"Dwarf Version", i32 2}
42!11 = !DILocation(line: 653, column: 5, scope: !12)
43!12 = distinct !DILexicalBlock(scope: !13, file: !1, line: 652, column: 35)
44!13 = distinct !DILexicalBlock(scope: !5, file: !1, line: 616, column: 1)
45!14 = !DILocalVariable(name: "do_tab_convert", scope: !15, file: !1, line: 853, type: !8)
46!15 = distinct !DILexicalBlock(scope: !12, file: !1, line: 850, column: 12)
47!16 = !DIExpression()
48!17 = !DILocation(line: 853, column: 11, scope: !15)
49!18 = !DILocation(line: 853, column: 29, scope: !15)
50
51