diff --git a/llvm/include/llvm/Analysis/InlineCost.h b/llvm/include/llvm/Analysis/InlineCost.h --- a/llvm/include/llvm/Analysis/InlineCost.h +++ b/llvm/include/llvm/Analysis/InlineCost.h @@ -67,10 +67,10 @@ }; /// The estimated cost of inlining this callsite. - int Cost; + int Cost = 0; /// The adjusted threshold against which this cost was computed. - int Threshold; + int Threshold = 0; /// Must be set for Always and Never instances. const char *Reason = nullptr; @@ -160,7 +160,7 @@ struct InlineParams { /// The default threshold to start with for a callee. - int DefaultThreshold; + int DefaultThreshold = 0; /// Threshold to use for callees with inline hint. Optional HintThreshold; @@ -240,6 +240,6 @@ /// Minimal filter to detect invalid constructs for inlining. InlineResult isInlineViable(Function &Callee); -} +} // namespace llvm #endif