[Mlir-commits] [mlir] c9731a3 - [mlir] Fix a warning about an extraneous semicolon

Kazu Hirata llvmlistbot at llvm.org
Tue Apr 16 12:10:11 PDT 2024


Author: Kazu Hirata
Date: 2024-04-16T12:10:05-07:00
New Revision: c9731a3dccd381849bfede5e09290c0574efa248

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

LOG: [mlir] Fix a warning about an extraneous semicolon

This patch fixes:

  mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp:58:2: error: extra ';'
  outside of a function is incompatible with C++98
  [-Werror,-Wc++98-compat-extra-semi]

Added: 
    

Modified: 
    mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
index 621986c54d492c..530c50ef74f7a0 100644
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
@@ -55,7 +55,7 @@ static int64_t getRankOf(Value val) {
   if (auto ty = llvm::dyn_cast<ShapedType>(type))
     return ty.getRank();
   return 0;
-};
+}
 
 static bool isReadHintOrNone(const CachePolicyAttr &attr) {
   if (!attr)


        


More information about the Mlir-commits mailing list