[Mlir-commits] [mlir] d8ed736 - Apply clang-tidy fixes for bugprone-macro-parentheses in Utils.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Jan 15 20:59:31 PST 2024


Author: Mehdi Amini
Date: 2024-01-15T20:59:13-08:00
New Revision: d8ed736c0e7da7752a3e6f4781d9741aae294f81

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

LOG: Apply clang-tidy fixes for bugprone-macro-parentheses in Utils.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/GPU/TransformOps/Utils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp b/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp
index 55683aebebfc17..df6338897c1660 100644
--- a/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp
+++ b/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp
@@ -42,7 +42,7 @@ using namespace mlir::transform::gpu;
 #define DEBUG_TYPE "gpu-transforms"
 
 #define DBGS() (llvm::dbgs() << '[' << DEBUG_TYPE << "] ")
-#define LDBG(X) LLVM_DEBUG(DBGS() << X << "\n")
+#define LDBG(X) LLVM_DEBUG(DBGS() << (X) << "\n")
 #define DBGS_ALIAS() (llvm::dbgs() << '[' << DEBUG_TYPE_ALIAS << "] ")
 
 /// Return a flattened thread id for the workgroup with given sizes.


        


More information about the Mlir-commits mailing list