[PATCH] D139225: [ModuleInliner] Initialize variables (NFC)

Kazu Hirata via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 2 13:31:21 PST 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGba7cf9d18a0d: [ModuleInliner] Initialize variables (NFC) (authored by kazu).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139225/new/

https://reviews.llvm.org/D139225

Files:
  llvm/lib/Analysis/InlineOrder.cpp


Index: llvm/lib/Analysis/InlineOrder.cpp
===================================================================
--- llvm/lib/Analysis/InlineOrder.cpp
+++ 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<CostBenefitPair> CostBenefit;
 };
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139225.479733.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221202/01fa43e3/attachment.bin>


More information about the llvm-commits mailing list