[llvm] 0f76fbf - [Support] Remove redundant declarations (NFC) (#165971)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 1 09:25:15 PDT 2025
Author: Kazu Hirata
Date: 2025-11-01T09:25:12-07:00
New Revision: 0f76fbf546cccb48300a25ae965a715957cd04ac
URL: https://github.com/llvm/llvm-project/commit/0f76fbf546cccb48300a25ae965a715957cd04ac
DIFF: https://github.com/llvm/llvm-project/commit/0f76fbf546cccb48300a25ae965a715957cd04ac.diff
LOG: [Support] Remove redundant declarations (NFC) (#165971)
In C++17, static constexpr members are implicitly inline, so they no
longer require an out-of-line definition.
Identified with readability-redundant-declaration.
Added:
Modified:
llvm/lib/Support/APFloat.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp
index e21cf8e13d4dc..e2645fa46bbcd 100644
--- a/llvm/lib/Support/APFloat.cpp
+++ b/llvm/lib/Support/APFloat.cpp
@@ -269,12 +269,6 @@ bool APFloatBase::isRepresentableBy(const fltSemantics &A,
A.precision <= B.precision;
}
-constexpr RoundingMode APFloatBase::rmNearestTiesToEven;
-constexpr RoundingMode APFloatBase::rmTowardPositive;
-constexpr RoundingMode APFloatBase::rmTowardNegative;
-constexpr RoundingMode APFloatBase::rmTowardZero;
-constexpr RoundingMode APFloatBase::rmNearestTiesToAway;
-
/* A tight upper bound on number of parts required to hold the value
pow(5, power) is
More information about the llvm-commits
mailing list