From 1c841671494bacddfb703a43cdd5dddc7aa9ef98 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Tue, 17 Aug 2021 23:31:50 -0700 Subject: [PATCH] [InstrProfiling][NFC] Initialize MadeChange variable This addresses an issue introduced in 389dc94d4be7 which triggers a crash on Windows. --- llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))