From: Mehdi Amini Date: Mon, 6 May 2019 15:05:09 +0000 (-0700) Subject: Fix MacOS build: static constexpr must be defined X-Git-Tag: llvmorg-11-init~1466^2~1816 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb8a0fc25e88380c683258f5d25f0e74ade21658;p=platform%2Fupstream%2Fllvm.git Fix MacOS build: static constexpr must be defined This can be removed in C++17. -- PiperOrigin-RevId: 246827022 --- 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) {