<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 - Instcombine crashes in the presence of llvm.assume and pointer comparisons with NULL"
   href="https://bugs.llvm.org/show_bug.cgi?id=38889">38889</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Instcombine crashes in the presence of llvm.assume and pointer comparisons with NULL
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>doerfert@cs.uni-saarland.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20859" name="attach_20859" title="Minimal test case">attachment 20859</a> <a href="attachment.cgi?id=20859&action=edit" title="Minimal test case">[details]</a></span>
Minimal test case

When I run opt -instcombine on the attached test case I get the following
error:

llvm/lib/IR/Constants.cpp:584: static llvm::Constant*
llvm::ConstantInt::get(llvm::Type*, const llvm::APInt&): Assertion
`C->getType() == Ty->getScalarType() && "ConstantInt type doesn't match the
type implied by its value!"' failed.

The IR looks fine to me and the verifier is also happy so this seems to be a
problem in instcombine. However, I only have a 6.0 version ready right now and
I'm not sure if it was fixed in trunk already.</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>