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

Duncan Sands <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|                            |INVALID

--- Comment #1 from Duncan Sands <[email protected]> 2011-09-13 08:44:00 CDT ---
The C language standard says that overflowing signed arithmetic results in
undefined behaviour.  Since temp / prev != prev can only be true if there
was a signed arithmetic overflow, the compiler is allowed to assume that
this never occurs.  Use unsigned arithmetic instead.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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