From fb8a0fc25e88380c683258f5d25f0e74ade21658 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Mon, 6 May 2019 08:05:09 -0700 Subject: [PATCH] Fix MacOS build: static constexpr must be defined This can be removed in C++17. -- PiperOrigin-RevId: 246827022 --- mlir/lib/IR/StandardTypes.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mlir/lib/IR/StandardTypes.cpp b/mlir/lib/IR/StandardTypes.cpp index c14a6b8..036fd09 100644 --- a/mlir/lib/IR/StandardTypes.cpp +++ b/mlir/lib/IR/StandardTypes.cpp @@ -31,6 +31,9 @@ using namespace mlir::detail; // Integer Type //===----------------------------------------------------------------------===// +// static constexpr must have a definition (until in C++17 and inline variable). +constexpr unsigned IntegerType::kMaxWidth; + /// Verify the construction of an integer type. LogicalResult IntegerType::verifyConstructionInvariants( llvm::Optional loc, MLIRContext *context, unsigned width) { -- 2.7.4