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: unassignedb...@nondot.org
          Reporter: mikael.hol...@ericsson.com
                CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to