[llvm] 1c84167 - [InstrProfiling][NFC] Initialize MadeChange variable
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 17 23:33:45 PDT 2021
Author: Petr Hosek
Date: 2021-08-17T23:33:38-07:00
New Revision: 1c841671494bacddfb703a43cdd5dddc7aa9ef98
URL: https://github.com/llvm/llvm-project/commit/1c841671494bacddfb703a43cdd5dddc7aa9ef98
DIFF: https://github.com/llvm/llvm-project/commit/1c841671494bacddfb703a43cdd5dddc7aa9ef98.diff
LOG: [InstrProfiling][NFC] Initialize MadeChange variable
This addresses an issue introduced in 389dc94d4be7 which triggers
a crash on Windows.
Added:
Modified:
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index 36762d162937..d2620fd593e1 100644
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -556,7 +556,7 @@ bool InstrProfiling::run(
UsedVars.clear();
TT = Triple(M.getTargetTriple());
- bool MadeChange;
+ bool MadeChange = false;
// Emit the runtime hook even if no counters are present.
if (needsRuntimeHookUnconditionally(TT))
More information about the llvm-commits
mailing list