<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 `Vars.empty() == VarLocs.empty() && "open ranges are inconsistent"' fails in LiveDebugValues"
   href="https://bugs.llvm.org/show_bug.cgi?id=42595">42595</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion `Vars.empty() == VarLocs.empty() && "open ranges are inconsistent"' fails in LiveDebugValues
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>DebugInfo
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>david.stenberg@ericsson.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22236" name="attach_22236" title="C++ reproducer">attachment 22236</a> <a href="attachment.cgi?id=22236&action=edit" title="C++ reproducer">[details]</a></span>
C++ reproducer

This assertion was found when trying to compile DAGCombiner.cpp from the
llvm-8.0 release using clang from today's trunk (r365881).

When compiling the attached program using:

  $ clang -fsanitize=address -std=c++11 -fno-exceptions -fno-rtti -g -O2 f.cpp

you get the following assertion:

  clang-9:
/home/edasten/upstream/monorepo/llvm/lib/CodeGen/LiveDebugValues.cpp:331: bool
{anonymous}::LiveDebugValues::OpenRangesSet::empty() const: Assertion
`Vars.empty() == VarLocs.empty() && "open ranges are inconsistent"' failed.

The program has been reduced with a run of creduce, but it is still a bit
messy, and can probably be made smaller.</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>