[mlir] Attempt working around a GCC 5 bug
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 1 Feb 2022 10:58:27 +0000 (11:58 +0100)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 1 Feb 2022 10:58:27 +0000 (11:58 +0100)
It doesn't like implicit `this` in generic lambdas.

mlir/tools/mlir-tblgen/OpFormatGen.cpp

index 7bbc2fa..3e395c2 100644 (file)
@@ -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");
       });