[llvm-bugs] [Bug 47081] Avoid doing equality comparisons between floating expressions.(llvm-project/clang/lib/Tooling/ASTDiff/ASTDiff.cpp:line 811)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 10 00:17:24 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47081

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
The check is correctly avoiding division by zero; in any case, Denominator is
known to always be an integer here. It's only stored as a double so that the
following division is a floating-point division rather than an integer
division.

-- 
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/20200810/f0c4e4fc/attachment.html>


More information about the llvm-bugs mailing list