diff options
author | Victor Campos <victor.campos@arm.com> | 2024-09-25 12:43:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 12:43:41 +0100 |
commit | 2a29d24ba94dac82e838c694595a0a574e505aab (patch) | |
tree | 8c20944d5e3732acc54b20a6f7661270d939b2d8 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | 9583215d55b639f9fc28400b560f9e66c13db13a (diff) | |
download | llvm-2a29d24ba94dac82e838c694595a0a574e505aab.zip llvm-2a29d24ba94dac82e838c694595a0a574e505aab.tar.gz llvm-2a29d24ba94dac82e838c694595a0a574e505aab.tar.bz2 |
[ADT] Use perfect forwarding in SmallSet::insert() (#108590)
Previously this method took arguments by const-ref. This patch changes
the implementation to take perfectly forwarded arguments in the form of
a universal reference. Now, the insertion method will take advantage of
arguments passed as rvalue, potentially leading to performance
improvements.
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions