diff --git a/llvm/lib/Analysis/InlineOrder.cpp b/llvm/lib/Analysis/InlineOrder.cpp --- a/llvm/lib/Analysis/InlineOrder.cpp +++ b/llvm/lib/Analysis/InlineOrder.cpp @@ -84,7 +84,7 @@ } private: - unsigned Size; + unsigned Size = UINT_MAX; }; class CostPriority { @@ -104,7 +104,7 @@ } private: - int Cost; + int Cost = INT_MAX; }; class CostBenefitPriority { @@ -170,8 +170,8 @@ } private: - int Cost; - int StaticBonusApplied; + int Cost = INT_MAX; + int StaticBonusApplied = 0; Optional CostBenefit; };