<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Clang produces broken debug info: inlinable function call in a function with debug info must have a !dbg location"
   href="https://bugs.llvm.org/show_bug.cgi?id=34958">34958</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang produces broken debug info: inlinable function call in a function with debug info must have a !dbg location
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Matthew.Arsenault@amd.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>${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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>