[Mlir-commits] [mlir] 77d04ff - [mlir][OpenMP] fix compilation warning (#147987)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 10 08:50:23 PDT 2025


Author: Peiming Liu
Date: 2025-07-10T08:50:19-07:00
New Revision: 77d04ffd6d4301157abfd8fae7954011d6bb6215

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

LOG: [mlir][OpenMP] fix compilation warning (#147987)

Added: 
    

Modified: 
    mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index c810c5b10f061..9bea8b7a732a8 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -3156,7 +3156,7 @@ void NewCliOp::getAsmResultNames(OpAsmSetValueNameFn setNameFn) {
               llvm_unreachable("heuristic unrolling does not generate a loop");
             })
             .Default([&](Operation *op) {
-              assert(!"TODO: Custom name for this operation");
+              assert(false && "TODO: Custom name for this operation");
               return "transformed";
             });
   }


        


More information about the Mlir-commits mailing list