<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 - Assertion failed: (!V->hasBrokenDebugInfo() && "Module contains invalid debug info"), function doFinalization"
   href="https://bugs.llvm.org/show_bug.cgi?id=34235">34235</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: (!V->hasBrokenDebugInfo() && "Module contains invalid debug info"), function doFinalization
          </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>All
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>stephan.bergmann.secondary@googlemail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>At least with recent Clang trunk on macOS:

<span class="quote">> $ clang-6.0 --version
> clang version 6.0.0 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a> 95b9e6248e220bddf2737f341bc397623cf91dc2) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a> b29118b50cc6a4d1229ee774273c03107e6bd7a4)
> Target: x86_64-apple-darwin16.7.0
> Thread model: posix
> InstalledDir: /Users/stephan/Software/llvm/inst/bin

> $ cat test.cc
> struct S {
>     void f1(bool);
>     void f2();
> };
> struct T { ~T(); };
> void f();
> void S::f1(bool b) {
>     T t;
>     if (b) f2();
>     else f2();
> }
> void S::f2() { f(); }

> $ clang-6.0 -cc1 -triple x86_64-apple-macosx10.11.0 -emit-obj -debug-info-kind=standalone -O1 -fexceptions test.cc
> inlinable function call in a function with debug info must have a !dbg location
>   invoke void @_ZN1S2f2Ev(%struct.S* undef)
>           to label %if.end unwind label %lpad
> inlinable function call in a function with debug info must have a !dbg location
>   invoke void @_ZN1S2f2Ev(%struct.S* undef)
>           to label %if.end unwind label %lpad
> Assertion failed: (!V->hasBrokenDebugInfo() && "Module contains invalid debug info"), function doFinalization, file /Users/stephan/Software/llvm/src/lib/IR/Verifier.cpp, line 4681.
> 0  clang-6.0                0x00000001096d2958 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
> 1  clang-6.0                0x00000001096d18a6 llvm::sys::RunSignalHandlers() + 86
> 2  clang-6.0                0x00000001096d2f19 SignalHandler(int) + 361
> 3  libsystem_platform.dylib 0x00007fffdce52b3a _sigtramp + 26
> 4  libsystem_platform.dylib 0x00007fb936c49cf8 _sigtramp + 1507815896
> 5  libsystem_c.dylib        0x00007fffdccd7420 abort + 129
> 6  libsystem_c.dylib        0x00007fffdcc9e893 basename_r + 0
> 7  clang-6.0                0x00000001091f5229 (anonymous namespace)::VerifierLegacyPass::doFinalization(llvm::Module&) + 185
> 8  clang-6.0                0x0000000109187c80 llvm::FPPassManager::doFinalization(llvm::Module&) + 80
> 9  clang-6.0                0x00000001091880fd llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1069
> 10 clang-6.0                0x00000001098c4e96 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream> >) + 15814
> 11 clang-6.0                0x0000000109ad3b0e clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 910
> 12 clang-6.0                0x000000010a438252 clang::ParseAST(clang::Sema&, bool, bool) + 466
> 13 clang-6.0                0x0000000109d219fc clang::FrontendAction::Execute() + 76
> 14 clang-6.0                0x0000000109cdf5d1 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1233
> 15 clang-6.0                0x0000000109d7e106 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4918
> 16 clang-6.0                0x0000000107ff1be9 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1401
> 17 clang-6.0                0x0000000107fefe76 main + 10374
> 18 libdyld.dylib            0x00007fffdcc43235 start + 1
> Stack dump:
> 0. Program arguments: clang-6.0 -cc1 -triple x86_64-apple-macosx10.11.0 -emit-obj -debug-info-kind=standalone -O1 -fexceptions test.cc 
> 1. <eof> parser at end of file
> 2. Code generation
> Abort trap: 6</span ></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>