[Mlir-commits] [mlir] 0237477 - [MLIR] Attempt to fix sanitizer issue (access of uninitialized member)

Mehdi Amini llvmlistbot at llvm.org
Mon Sep 15 08:32:33 PDT 2025


Author: Mehdi Amini
Date: 2025-09-15T08:31:47-07:00
New Revision: 0237477a121ec78eaf874a223dca6cd24d0111b8

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

LOG: [MLIR] Attempt to fix sanitizer issue (access of uninitialized member)

Follow-up to #156825 ; a member wasn't always initialized, it's not clear to me
why this is needed though, so this fix may not be the right one, we'll monitor
the bots.

Added: 
    

Modified: 
    mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h b/mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h
index c3ac9d99c24bf..7b83f10573645 100644
--- a/mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h
+++ b/mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h
@@ -264,7 +264,7 @@ class MlirOptMainConfig {
   bool allowUnregisteredDialectsFlag = false;
 
   /// Remark format
-  RemarkFormat remarkFormatFlag;
+  RemarkFormat remarkFormatFlag = REMARK_FORMAT_STDOUT;
   /// Remark file to output to
   std::string remarksOutputFileFlag = "";
   /// Remark filters


        


More information about the Mlir-commits mailing list