Skip to content

Commit

Permalink
Add definition for static constexpr member (NFC)
Browse files Browse the repository at this point in the history
Fix the build for some toolchain and config.
  • Loading branch information
joker-eph committed Oct 5, 2020
1 parent 8d51d37 commit afd729e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
Expand Up @@ -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) {}
Expand Down

0 comments on commit afd729e

Please sign in to comment.