[LLVMbugs] [Bug 15522] Loop Optimizer Problems

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 15 05:17:18 PDT 2013


Matti Niemenmaa <matti.niemenmaa+llvmbugs at iki.fi> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |matti.niemenmaa+llvmbugs at ik
                   |                            |i.fi
         Resolution|---                         |INVALID

--- Comment #1 from Matti Niemenmaa <matti.niemenmaa+llvmbugs at iki.fi> ---
buf only has 2 elements so using *pi (i.e. buf[2], the third element of buf) is
undefined behaviour. Change the code to say 'long buf[3]' and it works fine
even with -O3.

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/20130315/c351f70f/attachment.html>

More information about the llvm-bugs mailing list