<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 WORKSFORME - clang crashes on valid code at -O2 and -O3 on x86_64-linux-gnu with Assertion `Elt < getNumElements() && "Invalid Elt"' failedAssertion `(i == InductionOperand || PSE.getSE()->isLoopInvariant(PSE.getSCEV(GepOperandInst), OrigLoop)) && "Must be last inde"
href="https://bugs.llvm.org/show_bug.cgi?id=28351">bug 28351</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;">Resolution</td>
<td>---
</td>
<td>WORKSFORME
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>davide@freebsd.org
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - clang crashes on valid code at -O2 and -O3 on x86_64-linux-gnu with Assertion `Elt < getNumElements() && "Invalid Elt"' failedAssertion `(i == InductionOperand || PSE.getSE()->isLoopInvariant(PSE.getSCEV(GepOperandInst), OrigLoop)) && "Must be last inde"
href="https://bugs.llvm.org/show_bug.cgi?id=28351#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WORKSFORME - clang crashes on valid code at -O2 and -O3 on x86_64-linux-gnu with Assertion `Elt < getNumElements() && "Invalid Elt"' failedAssertion `(i == InductionOperand || PSE.getSE()->isLoopInvariant(PSE.getSCEV(GepOperandInst), OrigLoop)) && "Must be last inde"
href="https://bugs.llvm.org/show_bug.cgi?id=28351">bug 28351</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>[davide@localhost bin]$ ./clang -O3 vec.c -c
vec.c:5:5: warning: array index 1 is past the end of the array (which contains
1 element) [-Warray-bounds]
a[b][1] = 1;
^ ~
vec.c:1:1: note: array 'a' declared here
short a[2][1];
^
1 warning generated.
[davide@localhost bin]$ git log
commit 2257563e92784ac63855930f5c3dfb7602d14172
Author: davide <davide@91177308-0d34-0410-b5e6-96231b3b80d8>
Date: Wed Apr 19 17:26:57 2017 +0000
[InstCombine] Reduce visitLoadInst() code duplication. NFCI.
git-svn-id: <a href="https://llvm.org/svn/llvm-project/llvm/trunk@300717">https://llvm.org/svn/llvm-project/llvm/trunk@300717</a>
91177308-0d34-0410-b5e6-96231b3b80d8</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>