Remove extra `;` after function definition (NFC)
authorMehdi Amini <aminim@google.com>
Fri, 10 May 2019 20:54:11 +0000 (13:54 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 11 May 2019 02:29:26 +0000 (19:29 -0700)
    Fix a GCC warning

--

PiperOrigin-RevId: 247670176

mlir/lib/Analysis/NestedMatcher.cpp
mlir/lib/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/LLVMIR/Transforms/ConvertToLLVMDialect.cpp
mlir/lib/TableGen/OpTrait.cpp
mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp

index 8df9f35..95270a1 100644 (file)
@@ -155,7 +155,7 @@ NestedPattern For(FilterFunctionType filter, ArrayRef<NestedPattern> nested) {
 
 bool isLoadOrStore(Operation &op) {
   return op.isa<LoadOp>() || op.isa<StoreOp>();
-};
+}
 
 } // end namespace matcher
 } // end namespace mlir
index c77c816..792809a 100644 (file)
@@ -97,7 +97,7 @@ static const char *const *getICmpPredicateNames() {
                                       /*UGT*/ "ugt",
                                       /*UGE*/ "uge"};
   return predicateNames;
-};
+}
 
 // Returns a value of the ICmp predicate corresponding to the given mnemonic.
 // Returns -1 if there is no such mnemonic.
index 893a063..0d9025b 100644 (file)
@@ -944,7 +944,7 @@ void mlir::LLVM::ensureDistinctSuccessors(Module *m) {
       ::ensureDistinctSuccessors(bb);
     }
   }
-};
+}
 
 // Create a set of converters that live in the pass object by passing them a
 // reference to the LLVM IR dialect.  Store the module associated with the
index 2e39061..0a357ac 100644 (file)
@@ -39,7 +39,7 @@ mlir::tblgen::OpTrait mlir::tblgen::OpTrait::create(const llvm::Init *init) {
 }
 
 mlir::tblgen::OpTrait::OpTrait(Kind kind, const llvm::Record *def)
-    : def(def), kind(kind){};
+    : def(def), kind(kind) {}
 
 llvm::StringRef mlir::tblgen::NativeOpTrait::getTrait() const {
   return def->getValueAsString("trait");
index 3fd44c7..7fe62a2 100644 (file)
@@ -143,7 +143,7 @@ private:
   std::vector<Operation *> worklist;
   DenseMap<Operation *, unsigned> worklistMap;
 };
-}; // end anonymous namespace
+} // end anonymous namespace
 
 /// Perform the rewrites.
 bool GreedyPatternRewriteDriver::simplifyFunction(int maxIterations) {