[Mlir-commits] [mlir] 051452b - Remove spurious semicolon after function definition (NFC)

Mehdi Amini llvmlistbot at llvm.org
Sun May 17 16:15:30 PDT 2020


Author: Mehdi Amini
Date: 2020-05-17T23:15:17Z
New Revision: 051452bdb101f31457e9df014345bad58a7f1a09

URL: https://github.com/llvm/llvm-project/commit/051452bdb101f31457e9df014345bad58a7f1a09
DIFF: https://github.com/llvm/llvm-project/commit/051452bdb101f31457e9df014345bad58a7f1a09.diff

LOG: Remove spurious semicolon after function definition (NFC)

This fixes some GCC pedantic warnings.

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
    mlir/lib/IR/AffineMap.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
index 074d3a5f8b52..c7a0f9d3812d 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -345,7 +345,7 @@ static OpFoldResult foldReshapeOp(ReshapeOpTy reshapeOp) {
       reshapeSrcOp.getSrcType() == reshapeOp.getResultType())
     return reshapeSrcOp.src();
   return nullptr;
-};
+}
 
 /// Return true if the reassociation specification is valid, false otherwise.
 /// When false, the `invalidIndex` integer pointer is optionally filled with the

diff  --git a/mlir/lib/IR/AffineMap.cpp b/mlir/lib/IR/AffineMap.cpp
index 2823abc47b1e..8f2c944f388e 100644
--- a/mlir/lib/IR/AffineMap.cpp
+++ b/mlir/lib/IR/AffineMap.cpp
@@ -109,7 +109,7 @@ bool AffineMap::isMinorIdentity(AffineMap map) {
     return false;
   return map == getMinorIdentityMap(map.getNumDims(), map.getNumResults(),
                                     map.getContext());
-};
+}
 
 /// Returns an AffineMap representing a permutation.
 AffineMap AffineMap::getPermutationMap(ArrayRef<unsigned> permutation,


        


More information about the Mlir-commits mailing list