<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 - opt -inline causes 'Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!"' failed.'"
href="https://bugs.llvm.org/show_bug.cgi?id=47969">47969</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>opt -inline causes 'Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!"' failed.'
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikael.holmen@ericsson.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24100" name="attach_24100" title="bbi 48980.ll reproducer">attachment 24100</a> <a href="attachment.cgi?id=24100&action=edit" title="bbi 48980.ll reproducer">[details]</a></span>
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.</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>