[mlir] Fix GCC5 compilation problem in MLIR->LLVM type translation

GCC5 seems to dislike generic lambdas calling a method of the class
containing the lambda without explicit `this`.
This commit is contained in:
Alex Zinenko 2020-08-04 14:42:17 +02:00
parent ec1f4e7c3b
commit cb9f9df5f8
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public:
LLVM::LLVMFunctionType, LLVM::LLVMPointerType,
LLVM::LLVMStructType, LLVM::LLVMFixedVectorType,
LLVM::LLVMScalableVectorType>(
[this](auto array) { return translate(array); })
[this](auto type) { return this->translate(type); })
.Default([](LLVM::LLVMType t) -> llvm::Type * {
llvm_unreachable("unknown LLVM dialect type");
});
@ -187,7 +187,7 @@ public:
.Case<llvm::ArrayType, llvm::FunctionType, llvm::IntegerType,
llvm::PointerType, llvm::StructType, llvm::FixedVectorType,
llvm::ScalableVectorType>(
[this](auto *type) { return translate(type); })
[this](auto *type) { return this->translate(type); })
.Default([this](llvm::Type *type) {
return translatePrimitiveType(type);
});