[Mlir-commits] [mlir] afd729e - Add definition for static constexpr member (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Oct 5 09:56:42 PDT 2020
Author: Mehdi Amini
Date: 2020-10-05T16:56:27Z
New Revision: afd729edee4ca0dc63771448926ab5d346161511
URL: https://github.com/llvm/llvm-project/commit/afd729edee4ca0dc63771448926ab5d346161511
DIFF: https://github.com/llvm/llvm-project/commit/afd729edee4ca0dc63771448926ab5d346161511.diff
LOG: Add definition for static constexpr member (NFC)
Fix the build for some toolchain and config.
Added:
Modified:
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
index 75d07f35d226..93bdd1d89d93 100644
--- a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
+++ b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
@@ -2030,6 +2030,9 @@ struct AlignedAllocOpLowering : public AllocLikeOpLowering {
static constexpr uint64_t kMinAlignedAllocAlignment = 16UL;
};
+// Out of line definition, required till C++17.
+constexpr uint64_t AlignedAllocOpLowering::kMinAlignedAllocAlignment;
+
struct AllocaOpLowering : public AllocLikeOpLowering {
AllocaOpLowering(LLVMTypeConverter &converter)
: AllocLikeOpLowering(AllocaOp::getOperationName(), converter) {}
More information about the Mlir-commits
mailing list