[llvm-bugs] [Bug 38889] New: Instcombine crashes in the presence of llvm.assume and pointer comparisons with NULL

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 10 07:20:31 PDT 2018


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

            Bug ID: 38889
           Summary: Instcombine crashes in the presence of llvm.assume and
                    pointer comparisons with NULL
           Product: new-bugs
           Version: 6.0
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: doerfert at cs.uni-saarland.de
                CC: llvm-bugs at lists.llvm.org

Created attachment 20859
  --> https://bugs.llvm.org/attachment.cgi?id=20859&action=edit
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.

-- 
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/20180910/cdd3de25/attachment.html>


More information about the llvm-bugs mailing list