[lldb] Use a range-based for loop instead of llvm::for_each (NFC) (#149541)
LLVM Coding Standards discourages llvm::for_each unless we already have a callable.
This commit is contained in:
parent
9d9662e4bd
commit
3c1a09d939
@ -87,9 +87,8 @@ private:
|
||||
void ServerURLsChangedCallback() {
|
||||
m_server_urls = GetDebugInfoDURLs();
|
||||
llvm::SmallVector<llvm::StringRef> dbginfod_urls;
|
||||
llvm::for_each(m_server_urls, [&](const auto &obj) {
|
||||
for (const auto &obj : m_server_urls)
|
||||
dbginfod_urls.push_back(obj.ref());
|
||||
});
|
||||
llvm::setDefaultDebuginfodUrls(dbginfod_urls);
|
||||
}
|
||||
// Storage for the StringRef's used within the Debuginfod library.
|
||||
|
Loading…
x
Reference in New Issue
Block a user