[llvm] 59a6b66 - [OpenMP][FIX] Initialize member to avoid undefined value in debug output
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 15:42:57 PDT 2022
Author: Johannes Doerfert
Date: 2022-03-17T17:42:32-05:00
New Revision: 59a6b668abeaba9e6ac83281a65765cb08e76b65
URL: https://github.com/llvm/llvm-project/commit/59a6b668abeaba9e6ac83281a65765cb08e76b65
DIFF: https://github.com/llvm/llvm-project/commit/59a6b668abeaba9e6ac83281a65765cb08e76b65.diff
LOG: [OpenMP][FIX] Initialize member to avoid undefined value in debug output
Added:
Modified:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index 4934be773cd10..4e05eb9eb4d9b 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -2798,7 +2798,7 @@ struct AAExecutionDomainFunction : public AAExecutionDomain {
SmallSetVector<const BasicBlock *, 16> SingleThreadedBBs;
/// Total number of basic blocks in this function.
- long unsigned NumBBs;
+ long unsigned NumBBs = 0;
};
ChangeStatus AAExecutionDomainFunction::updateImpl(Attributor &A) {
More information about the llvm-commits
mailing list