[all-commits] [llvm/llvm-project] c2fe40: [ADT] Use list-initialization for returning pairs ...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Tue Sep 23 08:11:38 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c2fe408dda2977c17f47a4b11433c2244c7cd6dc
https://github.com/llvm/llvm-project/commit/c2fe408dda2977c17f47a4b11433c2244c7cd6dc
Author: Kazu Hirata <kazu at google.com>
Date: 2025-09-23 (Tue, 23 Sep 2025)
Changed paths:
M llvm/include/llvm/ADT/DenseMapInfo.h
M llvm/include/llvm/ADT/STLExtras.h
M llvm/include/llvm/ADT/SparseMultiSet.h
M llvm/include/llvm/ADT/StringRef.h
Log Message:
-----------
[ADT] Use list-initialization for returning pairs (#160238)
In C++17 and later, "return {A, B};" guarantees copy elision for a
std::pair return type, ensuring the object is constructed directly in
the return slot. This patch updates those instances under ADT/.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list