Skip to content

Commit afd729e

Browse files
committed
Add definition for static constexpr member (NFC)
Fix the build for some toolchain and config.
1 parent 8d51d37 commit afd729e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,6 +2030,9 @@ struct AlignedAllocOpLowering : public AllocLikeOpLowering {
20302030
static constexpr uint64_t kMinAlignedAllocAlignment = 16UL;
20312031
};
20322032

2033+
// Out of line definition, required till C++17.
2034+
constexpr uint64_t AlignedAllocOpLowering::kMinAlignedAllocAlignment;
2035+
20332036
struct AllocaOpLowering : public AllocLikeOpLowering {
20342037
AllocaOpLowering(LLVMTypeConverter &converter)
20352038
: AllocLikeOpLowering(AllocaOp::getOperationName(), converter) {}

0 commit comments

Comments
 (0)