<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:davide@freebsd.org" title="Davide Italiano <davide@freebsd.org>"> <span class="fn">Davide Italiano</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang crashes with "-mllvm -enable-newgvn": Assertion `i_nocapture < OperandTraits<PHINode>::operands(this) && "getOperand() out of range!"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=35123">bug 35123</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang crashes with "-mllvm -enable-newgvn": Assertion `i_nocapture < OperandTraits<PHINode>::operands(this) && "getOperand() out of range!"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=35123#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - clang crashes with "-mllvm -enable-newgvn": Assertion `i_nocapture < OperandTraits<PHINode>::operands(this) && "getOperand() out of range!"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=35123">bug 35123</a>
from <span class="vcard"><a class="email" href="mailto:davide@freebsd.org" title="Davide Italiano <davide@freebsd.org>"> <span class="fn">Davide Italiano</span></a>
</span></b>
<pre>Can't repro on ToT.
$ ./clang x.c -Os
x.c:9:14: warning: control reaches end of non-void function [-Wreturn-type]
char(fn1)() {}
^
x.c:17:18: warning: use of logical '&&' with constant operand
[-Wconstant-logical-operand]
c = (p1.f4 && 7) > (e && f || j);
^ ~
x.c:17:18: note: use '&' for a bitwise operation
c = (p1.f4 && 7) > (e && f || j);
^~
&
x.c:17:18: note: remove constant to silence this warning
c = (p1.f4 && 7) > (e && f || j);
~^~~~
x.c:17:29: warning: '&&' within '||' [-Wlogical-op-parentheses]
c = (p1.f4 && 7) > (e && f || j);
~~^~~~ ~~
x.c:17:29: note: place parentheses around the '&&' expression to silence this
warning
c = (p1.f4 && 7) > (e && f || j);
^
( )
x.c:26:5: warning: expression result unused [-Wunused-value]
g.f0;
~ ^~
4 warnings generated.</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>