aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DIBuilder.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-03-28 19:55:18 -0700
committerGitHub <noreply@github.com>2025-03-28 19:55:18 -0700
commitd4427f308eb6e42790a36b56d61b482cbc9f67ba (patch)
treea257b893e84d61706091979441ceb62e250f51fb /llvm/lib/IR/DIBuilder.cpp
parentb33cc642ed398b13875dbb9099916affce355b49 (diff)
downloadllvm-d4427f308eb6e42790a36b56d61b482cbc9f67ba.zip
llvm-d4427f308eb6e42790a36b56d61b482cbc9f67ba.tar.gz
llvm-d4427f308eb6e42790a36b56d61b482cbc9f67ba.tar.bz2
[llvm] Use range constructors of *Set (NFC) (#133549)
Diffstat (limited to 'llvm/lib/IR/DIBuilder.cpp')
-rw-r--r--llvm/lib/IR/DIBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp
index 9e7aea8..3c1fd43 100644
--- a/llvm/lib/IR/DIBuilder.cpp
+++ b/llvm/lib/IR/DIBuilder.cpp
@@ -38,7 +38,7 @@ DIBuilder::DIBuilder(Module &m, bool AllowUnresolvedNodes, DICompileUnit *CU)
if (const auto &IMs = CUNode->getImportedEntities())
ImportedModules.assign(IMs.begin(), IMs.end());
if (const auto &MNs = CUNode->getMacros())
- AllMacrosPerParent.insert({nullptr, {MNs.begin(), MNs.end()}});
+ AllMacrosPerParent.insert({nullptr, {llvm::from_range, MNs}});
}
}