diff options
author | Kazu Hirata <kazu@google.com> | 2021-03-01 23:40:32 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-03-01 23:40:33 -0800 |
commit | 4444b343d7e208e6e6f7ee885d380d90df1c231d (patch) | |
tree | 94c635da7e010c5cc873f620efb986edcfd1cd0e /llvm/lib/IR/ModuleSummaryIndex.cpp | |
parent | 3a80088357d14e90e5cfefeb2718bf4024d43d1b (diff) | |
download | llvm-4444b343d7e208e6e6f7ee885d380d90df1c231d.zip llvm-4444b343d7e208e6e6f7ee885d380d90df1c231d.tar.gz llvm-4444b343d7e208e6e6f7ee885d380d90df1c231d.tar.bz2 |
[IR] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
-rw-r--r-- | llvm/lib/IR/ModuleSummaryIndex.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp index c2ded87..f4ac6ca 100644 --- a/llvm/lib/IR/ModuleSummaryIndex.cpp +++ b/llvm/lib/IR/ModuleSummaryIndex.cpp @@ -292,10 +292,9 @@ void ModuleSummaryIndex::propagateAttributes( if (!IsDSOLocal) // Mark the flag in all summaries false so that we can do quick check // without going through the whole list. - llvm::for_each(P.second.SummaryList, - [](const std::unique_ptr<GlobalValueSummary> &Summary) { - return Summary->setDSOLocal(false); - }); + for (const std::unique_ptr<GlobalValueSummary> &Summary : + P.second.SummaryList) + Summary->setDSOLocal(false); } setWithAttributePropagation(); setWithDSOLocalPropagation(); |