[Mlir-commits] [mlir] 39f2839 - [mlir] Fix ClangTidy warning (NFC).

Adrian Kuegel llvmlistbot at llvm.org
Fri Jun 3 03:47:23 PDT 2022


Author: Adrian Kuegel
Date: 2022-06-03T12:46:14+02:00
New Revision: 39f28397e2981238423f5482bef956306ef47c1f

URL: https://github.com/llvm/llvm-project/commit/39f28397e2981238423f5482bef956306ef47c1f
DIFF: https://github.com/llvm/llvm-project/commit/39f28397e2981238423f5482bef956306ef47c1f.diff

LOG: [mlir] Fix ClangTidy warning (NFC).

virtual is redundant since the function is already declared 'override'.

Added: 
    

Modified: 
    mlir/lib/Parser/AsmParserImpl.h

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Parser/AsmParserImpl.h b/mlir/lib/Parser/AsmParserImpl.h
index cdf6419b0800..4b437da697e2 100644
--- a/mlir/lib/Parser/AsmParserImpl.h
+++ b/mlir/lib/Parser/AsmParserImpl.h
@@ -222,12 +222,12 @@ class AsmParserImpl : public BaseT {
   }
 
   /// Parse a '|' token.
-  virtual ParseResult parseVerticalBar() override {
+  ParseResult parseVerticalBar() override {
     return parser.parseToken(Token::vertical_bar, "expected '|'");
   }
 
   /// Parse a '|' token if present.
-  virtual ParseResult parseOptionalVerticalBar() override {
+  ParseResult parseOptionalVerticalBar() override {
     return success(parser.consumeIf(Token::vertical_bar));
   }
 


        


More information about the Mlir-commits mailing list