Skip to content

Commit 69946c8

Browse files
joker-ephtru
authored andcommitted
Fix MSAN error: use of unitialized value when hashing the MLIR pass manager (NFC)
1 parent c5f0c32 commit 69946c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Pass/Pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ LogicalResult OpPassManager::initialize(MLIRContext *context,
426426
}
427427

428428
llvm::hash_code OpPassManager::hash() {
429-
llvm::hash_code hashCode;
429+
llvm::hash_code hashCode{};
430430
for (Pass &pass : getPasses()) {
431431
// If this pass isn't an adaptor, directly hash it.
432432
auto *adaptor = dyn_cast<OpToOpPassAdaptor>(&pass);

0 commit comments

Comments
 (0)