[llvm-bugs] [Bug 34958] New: Clang produces broken debug info: inlinable function call in a function with debug info must have a !dbg location

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 15 10:40:07 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34958

            Bug ID: 34958
           Summary: Clang produces broken debug info: inlinable function
                    call in a function with debug info must have a !dbg
                    location
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: Matthew.Arsenault at amd.com
                CC: llvm-bugs at lists.llvm.org

${CLANG} "-cc1" "-triple" "amdgcn-amd-amdhsa-opencl" "-emit-llvm-bc"
"-emit-llvm-uselists" "-disable-free"  "-mrelocation-model" "static"
"-mthread-model" "posix"  "-target-cpu" "fiji" "-dwarf-column-info"
"-debug-info-kind=limited" "-dwarf-version=2" "-debugger-tuning=gdb"
"-resource-dir" "/home/marsenau/builds/opencl_amdgpu_scratch/bin/lib/clang/4.0"
"-O3" "-w"  "-ferror-limit" "19" "-fmessage-length" "204" "-cl-std=CL1.2"
"-fdiagnostics-show-option" -S -emit-llvm -o compiled_err.ll "-x" "cl"
broken_debug_info.cl


inlinable function call in a function with debug info must have a !dbg location
  %call4 = call float @bar(float %4) #5
fatal error: error in backend: Broken module found, compilation aborted!

Using -disable-llvm-passes produces an IR output, but any tool that tries to
load it fails on the verifier error.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171015/3669cd16/attachment.html>


More information about the llvm-bugs mailing list