[Mlir-commits] [mlir] ec5e947 - Fix MSAN error: use of unitialized value when hashing the MLIR pass manager (NFC)

Mehdi Amini llvmlistbot at llvm.org
Tue Aug 22 16:27:54 PDT 2023


Author: Mehdi Amini
Date: 2023-08-22T16:27:44-07:00
New Revision: ec5e947f97aeb3d30316a33313f8661e78318146

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

LOG: Fix MSAN error: use of unitialized value when hashing the MLIR pass manager (NFC)

Added: 
    

Modified: 
    mlir/lib/Pass/Pass.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Pass/Pass.cpp b/mlir/lib/Pass/Pass.cpp
index 3b933fde58a137..658f8844b428df 100644
--- a/mlir/lib/Pass/Pass.cpp
+++ b/mlir/lib/Pass/Pass.cpp
@@ -426,7 +426,7 @@ LogicalResult OpPassManager::initialize(MLIRContext *context,
 }
 
 llvm::hash_code OpPassManager::hash() {
-  llvm::hash_code hashCode;
+  llvm::hash_code hashCode{};
   for (Pass &pass : getPasses()) {
     // If this pass isn't an adaptor, directly hash it.
     auto *adaptor = dyn_cast<OpToOpPassAdaptor>(&pass);


        


More information about the Mlir-commits mailing list