[llvm] 71b1203 - [ModuleInliner] Capitalize a variable name (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 18 14:35:18 PDT 2022
Author: Kazu Hirata
Date: 2022-09-18T14:35:09-07:00
New Revision: 71b12030b94f2fa2b3b2ce53d1877e675949428e
URL: https://github.com/llvm/llvm-project/commit/71b12030b94f2fa2b3b2ce53d1877e675949428e
DIFF: https://github.com/llvm/llvm-project/commit/71b12030b94f2fa2b3b2ce53d1877e675949428e.diff
LOG: [ModuleInliner] Capitalize a variable name (NFC)
Added:
Modified:
llvm/lib/Analysis/InlineOrder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/InlineOrder.cpp b/llvm/lib/Analysis/InlineOrder.cpp
index a0d6a0aac618..6bb03f620642 100644
--- a/llvm/lib/Analysis/InlineOrder.cpp
+++ b/llvm/lib/Analysis/InlineOrder.cpp
@@ -111,12 +111,12 @@ class CostPriority : public InlinePriority {
PriorityT evaluate(const CallBase *CB) {
auto IC = getInlineCost(CB);
- int cost = 0;
+ int Cost = 0;
if (IC.isVariable())
- cost = IC.getCost();
+ Cost = IC.getCost();
else
- cost = IC.isNever() ? INT_MAX : INT_MIN;
- return cost;
+ Cost = IC.isNever() ? INT_MAX : INT_MIN;
+ return Cost;
}
bool isMoreDesirable(const PriorityT &P1, const PriorityT &P2) const {
More information about the llvm-commits
mailing list