[llvm] [APFloat] Fix `IEEEFloat::addOrSubtractSignificand` and `IEEEFloat::normalize` (PR #98721)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 13 00:32:49 PDT 2024


================
@@ -1796,35 +1797,55 @@ lostFraction IEEEFloat::addOrSubtractSignificand(const IEEEFloat &rhs,
   /* Subtraction is more subtle than one might naively expect.  */
   if (subtract) {
     IEEEFloat temp_rhs(rhs);
+    auto lost_fraction_is_from_rhs = false;
----------------
tschuett wrote:

Why `auto`? `bool` has the same number of characters.

https://github.com/llvm/llvm-project/pull/98721


More information about the llvm-commits mailing list