[llvm] 7b563e3 - Apply clang-tidy fixes for readability-redundant-smartptr-get in SummaryBasedOptimizations.cpp (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 09:19:21 PDT 2022
Author: Kazu Hirata
Date: 2022-03-28T09:18:31-07:00
New Revision: 7b563e341a8524e99f96f994f372fbed3b02f6b1
URL: https://github.com/llvm/llvm-project/commit/7b563e341a8524e99f96f994f372fbed3b02f6b1
DIFF: https://github.com/llvm/llvm-project/commit/7b563e341a8524e99f96f994f372fbed3b02f6b1.diff
LOG: Apply clang-tidy fixes for readability-redundant-smartptr-get in SummaryBasedOptimizations.cpp (NFC)
Added:
Modified:
llvm/lib/LTO/SummaryBasedOptimizations.cpp
Removed:
################################################################################
diff --git a/llvm/lib/LTO/SummaryBasedOptimizations.cpp b/llvm/lib/LTO/SummaryBasedOptimizations.cpp
index 9e9d5c84d50df..bd3565771c293 100644
--- a/llvm/lib/LTO/SummaryBasedOptimizations.cpp
+++ b/llvm/lib/LTO/SummaryBasedOptimizations.cpp
@@ -55,7 +55,7 @@ void llvm::computeSyntheticCounts(ModuleSummaryIndex &Index) {
};
auto GetEntryCount = [](ValueInfo V) {
if (V.getSummaryList().size()) {
- auto S = V.getSummaryList().front().get()->getBaseObject();
+ auto S = V.getSummaryList().front()->getBaseObject();
auto *F = cast<FunctionSummary>(S);
return F->entryCount();
} else {
More information about the llvm-commits
mailing list