• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -o /dev/null
2; PR 5942
3define i8* @foo() nounwind {
4entry:
5  %0 = load i32, i32* undef, align 4, !dbg !0          ; <i32> [#uses=1]
6  %1 = inttoptr i32 %0 to i8*, !dbg !0            ; <i8*> [#uses=1]
7  ret i8* %1, !dbg !10
8
9}
10
11!llvm.dbg.cu = !{!3}
12!llvm.module.flags = !{!14}
13
14!0 = !DILocation(line: 571, column: 3, scope: !1)
15!1 = distinct !DILexicalBlock(line: 1, column: 1, file: !11, scope: !2)
16!2 = distinct !DISubprogram(name: "foo", linkageName: "foo", file: !11, line: 561, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !3, scope: !3, type: !4)
17!3 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang 1.1", isOptimized: true, emissionKind: FullDebug, file: !11, enums: !12, retainedTypes: !12)
18!4 = !DISubroutineType(types: !5)
19!5 = !{!6}
20!6 = !DIBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char)
21!10 = !DILocation(line: 588, column: 1, scope: !2)
22!11 = !DIFile(filename: "hashtab.c", directory: "/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libiberty")
23!12 = !{}
24!14 = !{i32 1, !"Debug Info Version", i32 3}
25