https://llvm.org/bugs/show_bug.cgi?id=6981
Paweł Bylica <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #3 from Paweł Bylica <[email protected]> --- This cannot be reproduced any more with LLVM/clang 3.7. Tested on win32 with MCJIT and interpreter with test: target triple = "i686-pc-win32-msvc-elf" ; Function Attrs: nounwind uwtable define i32 @main() #0 { %1 = alloca i32, align 4 %a = alloca i32, align 4 store i32 0, i32* %1 br label %2, !dbg !11 ; <label>:2 ; preds = %0 call void @llvm.dbg.declare(metadata i32* %a, metadata !12, metadata !13), !dbg !14 store i32 0, i32* %a, align 4, !dbg !14 ret i32 0, !dbg !15 } ; Function Attrs: nounwind readnone declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { nounwind readnone } !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!8, !9} !llvm.ident = !{!10} !0 = !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "Ubuntu clang version 3.7.0-svn235195-1~exp1 (trunk) (based on LLVM 3.7.0)", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) !1 = !DIFile(filename: "/tmp/gcc-explorer-compiler115425-68-1iou2qg/example.cpp", directory: "/gcc-explorer") !2 = !{} !3 = !{!4} !4 = !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, function: i32 ()* @main, variables: !2) !5 = !DISubroutineType(types: !6) !6 = !{!7} !7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) !8 = !{i32 2, !"Dwarf Version", i32 4} !9 = !{i32 2, !"Debug Info Version", i32 3} !10 = !{!"Ubuntu clang version 3.7.0-svn235195-1~exp1 (trunk) (based on LLVM 3.7.0)"} !11 = !DILocation(line: 2, column: 9, scope: !4) !12 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "a", scope: !4, file: !1, line: 4, type: !7) !13 = !DIExpression() !14 = !DILocation(line: 4, column: 13, scope: !4) !15 = !DILocation(line: 5, column: 9, scope: !4) -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
