[mlir] Provide a home for mlir::LLVM::GEPOp::kDynamicIndex

C++14 requires this and will trigger linker errors when optimizations
are disabled.
This commit is contained in:
Benjamin Kramer 2022-01-07 12:04:17 +01:00
parent 50da013406
commit ae29d5a484
1 changed files with 2 additions and 0 deletions

View File

@ -360,6 +360,8 @@ SwitchOp::getMutableSuccessorOperands(unsigned index) {
// Code for LLVM::GEPOp.
//===----------------------------------------------------------------------===//
constexpr int GEPOp::kDynamicIndex;
/// Populates `indices` with positions of GEP indices that would correspond to
/// LLVMStructTypes potentially nested in the given type. The type currently
/// visited gets `currentIndex` and LLVM container types are visited