2014-03-29 18:18:08 +08:00
; RUN: llc < %s -mtriple=arm64-apple-darwin
; rdar://9146594
2016-12-22 08:45:21 +08:00
source_filename = "test/CodeGen/AArch64/arm64-2011-03-17-AsmPrinterCrash.ll"
; Function Attrs: nounwind ssp
define void @drt_vsprintf ( ) #0 {
2014-03-29 18:18:08 +08:00
entry:
%do_tab_convert = alloca i32 , align 4
2016-12-22 08:45:21 +08:00
br i1 undef , label %if.then24 , label %if.else295 , !dbg !11
2014-03-29 18:18:08 +08:00
if.then24: ; preds = %entry
unreachable
if.else295: ; preds = %entry
2016-12-22 08:45:21 +08:00
call void @llvm.dbg.declare ( metadata i32 * %do_tab_convert , metadata !14 , metadata !16 ) , !dbg !17
store i32 0 , i32 * %do_tab_convert , align 4 , !dbg !18
2014-03-29 18:18:08 +08:00
unreachable
}
2016-12-22 08:45:21 +08:00
; Function Attrs: nounwind readnone
declare void @llvm.dbg.declare ( metadata , metadata , metadata ) #1
attributes #0 = { nounwind ssp }
attributes #1 = { nounwind readnone }
!llvm.dbg.cu = ! { !0 }
!llvm.module.flags = ! { !9 , !10 }
2019-01-16 00:18:52 +08:00
!0 = distinct !DICompileUnit ( language: D W _ L A N G _ C 99 , file: !1 , producer: "clang version 3.0" , isOptimized: true , runtimeVersion: 0 , emissionKind: F u l l D e b u g , globals: !2 )
2016-12-22 08:45:21 +08:00
!1 = !DIFile ( filename: "print.i" , directory: "/Volumes/Ebi/echeng/radars/r9146594" )
!2 = ! { !3 }
2017-08-31 02:06:51 +08:00
!3 = !DIGlobalVariableExpression ( var: !4 , expr: !DIExpression ( ) )
2016-12-22 08:45:21 +08:00
!4 = !DIGlobalVariable ( name: "vsplive" , scope: !5 , file: !1 , line: 617 , type: !8 , isLocal: true , isDefinition: true )
!5 = distinct !DISubprogram ( name: "drt_vsprintf" , scope: !1 , file: !1 , line: 616 , type: !6 , isLocal: false , isDefinition: true , virtualIndex: 6 , flags: D I F l a g P r o t o t y p e d , isOptimized: false , unit: !0 )
!6 = !DISubroutineType ( types: !7 )
!7 = ! { !8 }
!8 = !DIBasicType ( name: "int" , size: 32 , align: 32 , encoding: D W _ A T E _ s i g n e d )
!9 = ! { i32 2 , !"Debug Info Version" , i32 3 }
!10 = ! { i32 2 , !"Dwarf Version" , i32 2 }
!11 = !DILocation ( line: 653 , column: 5 , scope: !12 )
!12 = distinct !DILexicalBlock ( scope: !13 , file: !1 , line: 652 , column: 35 )
!13 = distinct !DILexicalBlock ( scope: !5 , file: !1 , line: 616 , column: 1 )
!14 = !DILocalVariable ( name: "do_tab_convert" , scope: !15 , file: !1 , line: 853 , type: !8 )
!15 = distinct !DILexicalBlock ( scope: !12 , file: !1 , line: 850 , column: 12 )
!16 = !DIExpression ( )
!17 = !DILocation ( line: 853 , column: 11 , scope: !15 )
!18 = !DILocation ( line: 853 , column: 29 , scope: !15 )