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"); });