[llvm-bugs] [Bug 47969] New: opt -inline causes 'Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!"' failed.'

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 26 04:33:33 PDT 2020


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

            Bug ID: 47969
           Summary: opt -inline causes 'Assertion
                    `CastInst::castIsValid(opc, C, Ty) && "Invalid
                    constantexpr cast!"' failed.'
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mikael.holmen at ericsson.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Created attachment 24100
  --> https://bugs.llvm.org/attachment.cgi?id=24100&action=edit
bbi 48980.ll reproducer

llvm commit: 7025687799

Reproduce with:
opt -S -o - bbi-48980.ll -inline

Result:
opt: ../lib/IR/Constants.cpp:1794: static llvm::Constant
*llvm::ConstantExpr::getCast(unsigned int, llvm::Constant *, llvm::Type *,
bool): Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr
cast!"' failed.

This seems to be old, I've reproduced it with old saved builds from November
2016.

-- 
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/20201026/73d25b77/attachment.html>


More information about the llvm-bugs mailing list