diff options
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(); |