| Devang Patel | d146e2e | 2010-01-05 16:59:17 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -o /dev/null |
| 2 | ; PR 5942 |
| 3 | define i8* @foo() nounwind { |
| 4 | entry: |
| David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 5 | %0 = load i32, i32* undef, align 4, !dbg !0 ; <i32> [#uses=1] |
| Devang Patel | d146e2e | 2010-01-05 16:59:17 +0000 | [diff] [blame] | 6 | %1 = inttoptr i32 %0 to i8*, !dbg !0 ; <i8*> [#uses=1] |
| 7 | ret i8* %1, !dbg !10 |
| 8 | |
| 9 | } |
| 10 | |
| Manman Ren | 921382e | 2013-07-27 01:26:08 +0000 | [diff] [blame] | 11 | !llvm.dbg.cu = !{!3} |
| Manman Ren | 409558f | 2013-11-22 21:49:45 +0000 | [diff] [blame] | 12 | !llvm.module.flags = !{!14} |
| Manman Ren | 921382e | 2013-07-27 01:26:08 +0000 | [diff] [blame] | 13 | |
| Duncan P. N. Exon Smith | 9885469 | 2015-01-14 22:27:36 +0000 | [diff] [blame] | 14 | !0 = !MDLocation(line: 571, column: 3, scope: !1) |
| Duncan P. N. Exon Smith | e274180 | 2015-03-03 17:24:31 +0000 | [diff] [blame] | 15 | !1 = distinct !MDLexicalBlock(line: 1, column: 1, file: !11, scope: !2) |
| 16 | !2 = !MDSubprogram(name: "foo", linkageName: "foo", line: 561, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scope: !3, type: !4) |
| 17 | !3 = !MDCompileUnit(language: DW_LANG_C99, producer: "clang 1.1", isOptimized: true, emissionKind: 0, file: !11, enums: !12, retainedTypes: !12, subprograms: !13) |
| 18 | !4 = !MDSubroutineType(types: !5) |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 19 | !5 = !{!6} |
| Duncan P. N. Exon Smith | e274180 | 2015-03-03 17:24:31 +0000 | [diff] [blame] | 20 | !6 = !MDBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char) |
| Duncan P. N. Exon Smith | 9885469 | 2015-01-14 22:27:36 +0000 | [diff] [blame] | 21 | !10 = !MDLocation(line: 588, column: 1, scope: !2) |
| Duncan P. N. Exon Smith | e274180 | 2015-03-03 17:24:31 +0000 | [diff] [blame] | 22 | !11 = !MDFile(filename: "hashtab.c", directory: "/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcclibs/libiberty") |
| Duncan P. N. Exon Smith | 988a7f8 | 2015-03-27 20:46:33 +0000 | [diff] [blame] | 23 | !12 = !{} |
| Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 24 | !13 = !{!2} |
| Duncan P. N. Exon Smith | e274180 | 2015-03-03 17:24:31 +0000 | [diff] [blame] | 25 | !14 = !{i32 1, !"Debug Info Version", i32 3} |