[LLVMbugs] [Bug 12051] Miscompilation with -O1 and above: Wrong branch taken

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 21 08:09:30 PST 2012


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

Anton Korobeynikov <asl at math.spbu.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |asl at math.spbu.ru
         Resolution|                            |INVALID

--- Comment #1 from Anton Korobeynikov <asl at math.spbu.ru> 2012-02-21 10:09:30 CST ---
The code does signed int wrap which is undefined behavior. Add -ftrapv to catch
the trap in the runtime.

-- 
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.



More information about the llvm-bugs mailing list