[Mlir-commits] [mlir] a0ea733 - [mlir] Attempt working around a GCC 5 bug
Benjamin Kramer
llvmlistbot at llvm.org
Tue Feb 1 02:59:06 PST 2022
Author: Benjamin Kramer
Date: 2022-02-01T11:58:27+01:00
New Revision: a0ea73394fd17953772f7ac709a99f1850fd0939
URL: https://github.com/llvm/llvm-project/commit/a0ea73394fd17953772f7ac709a99f1850fd0939
DIFF: https://github.com/llvm/llvm-project/commit/a0ea73394fd17953772f7ac709a99f1850fd0939.diff
LOG: [mlir] Attempt working around a GCC 5 bug
It doesn't like implicit `this` in generic lambdas.
Added:
Modified:
mlir/tools/mlir-tblgen/OpFormatGen.cpp
Removed:
################################################################################
diff --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
index 7bbc2fae29eb..3e395c2f7731 100644
--- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp
@@ -2707,7 +2707,7 @@ OpFormatParser::parseQualifiedDirective(SMLoc loc, Context context) {
return element;
})
.Default([&](auto *element) {
- return emitError(
+ return this->emitError(
loc,
"'qualified' directive expects an attribute or a `type` directive");
});
More information about the Mlir-commits
mailing list