From c18df1e1569c8a0ecfd89c9879332f5c6bb95bf9 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 6 Jun 2021 11:09:55 +0100 Subject: [PATCH] Fix uninitialized variable warnings. NFCI. --- llvm/include/llvm/Transforms/IPO/IROutliner.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Transforms/IPO/IROutliner.h b/llvm/include/llvm/Transforms/IPO/IROutliner.h index eefcbe5..442a8ec1 100644 --- a/llvm/include/llvm/Transforms/IPO/IROutliner.h +++ b/llvm/include/llvm/Transforms/IPO/IROutliner.h @@ -63,7 +63,7 @@ class OptimizationRemarkEmitter; /// mapping from the extracted function arguments to overall function arguments. struct OutlinableRegion { /// Describes the region of code. - IRSimilarityCandidate *Candidate; + IRSimilarityCandidate *Candidate = nullptr; /// If this region is outlined, the front and back IRInstructionData could /// potentially become invalidated if the only new instruction is a call. @@ -72,11 +72,11 @@ struct OutlinableRegion { IRInstructionData *NewBack = nullptr; /// The number of extracted inputs from the CodeExtractor. - unsigned NumExtractedInputs; + unsigned NumExtractedInputs = 0; /// The corresponding BasicBlock with the appropriate stores for this /// OutlinableRegion in the overall function. - unsigned OutputBlockNum; + unsigned OutputBlockNum = -1; /// Mapping the extracted argument number to the argument number in the /// overall function. Since there will be inputs, such as elevated constants -- 2.7.4