[Mlir-commits] [mlir] 120ccef - [mlir] Remove C++17 only use of inline on constexpr variable
River Riddle
llvmlistbot at llvm.org
Thu Nov 12 23:06:48 PST 2020
Author: River Riddle
Date: 2020-11-12T23:02:37-08:00
New Revision: 120ccef0e1f1a675c86df1bf706eae62a2e03555
URL: https://github.com/llvm/llvm-project/commit/120ccef0e1f1a675c86df1bf706eae62a2e03555
DIFF: https://github.com/llvm/llvm-project/commit/120ccef0e1f1a675c86df1bf706eae62a2e03555.diff
LOG: [mlir] Remove C++17 only use of inline on constexpr variable
Added:
Modified:
mlir/include/mlir/IR/Attributes.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/Attributes.h b/mlir/include/mlir/IR/Attributes.h
index 0432d0584f9c..b9503346dd6f 100644
--- a/mlir/include/mlir/IR/Attributes.h
+++ b/mlir/include/mlir/IR/Attributes.h
@@ -684,10 +684,9 @@ class DenseElementsAttr : public ElementsAttr {
/// point type, or is a potentially user defined floating point type. The
/// latter allows for supporting users that have custom types defined for
/// bfloat16/half/etc.
- static inline constexpr bool value =
- llvm::is_one_of<T, float, double>::value ||
- (std::numeric_limits<T>::is_specialized &&
- !std::numeric_limits<T>::is_integer);
+ static constexpr bool value = llvm::is_one_of<T, float, double>::value ||
+ (std::numeric_limits<T>::is_specialized &&
+ !std::numeric_limits<T>::is_integer);
};
/// Method for support type inquiry through isa, cast and dyn_cast.
More information about the Mlir-commits
mailing list