forked from OSchip/llvm-project
[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:
parent
ec1f4e7c3b
commit
cb9f9df5f8
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue