[llvm-bugs] [Bug 28351] 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
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 20 08:48:29 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=28351
Davide Italiano <davide at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
CC| |davide at freebsd.org
Status|NEW |RESOLVED
--- Comment #1 from Davide Italiano <davide at freebsd.org> ---
[davide at 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 at localhost bin]$ git log
commit 2257563e92784ac63855930f5c3dfb7602d14172
Author: davide <davide at 91177308-0d34-0410-b5e6-96231b3b80d8>
Date: Wed Apr 19 17:26:57 2017 +0000
[InstCombine] Reduce visitLoadInst() code duplication. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300717
91177308-0d34-0410-b5e6-96231b3b80d8
--
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/20170420/50019b07/attachment.html>
More information about the llvm-bugs
mailing list