http://llvm.org/bugs/show_bug.cgi?id=15522

Matti Niemenmaa <[email protected]> changed:

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

--- Comment #1 from Matti Niemenmaa <[email protected]> ---
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to