Author: Mehdi Amini
Date: 2023-08-25T09:42:01+02:00
New Revision: 69946c8c9ce76f3bf6fbac789ef426a468d6eb5a

URL: 
https://github.com/llvm/llvm-project/commit/69946c8c9ce76f3bf6fbac789ef426a468d6eb5a
DIFF: 
https://github.com/llvm/llvm-project/commit/69946c8c9ce76f3bf6fbac789ef426a468d6eb5a.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 44b83c22fd515e..a562a00eb19531 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);


        
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to