[InstrProfiling][NFC] Initialize MadeChange variable
authorPetr Hosek <phosek@google.com>
Wed, 18 Aug 2021 06:31:50 +0000 (23:31 -0700)
committerPetr Hosek <phosek@google.com>
Wed, 18 Aug 2021 06:33:38 +0000 (23:33 -0700)
This addresses an issue introduced in 389dc94d4be7 which triggers
a crash on Windows.

llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp

index 36762d1..d2620fd 100644 (file)
@@ -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))