[all-commits] [llvm/llvm-project] 719655: [Support] Use list-initialization for returning pa...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Wed Sep 24 08:45:18 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7196554c2a16b5323923ae90008ccc48e33c020d
https://github.com/llvm/llvm-project/commit/7196554c2a16b5323923ae90008ccc48e33c020d
Author: Kazu Hirata <kazu at google.com>
Date: 2025-09-24 (Wed, 24 Sep 2025)
Changed paths:
M llvm/include/llvm/Support/BinaryStreamRef.h
M llvm/include/llvm/Support/DebugCounter.h
M llvm/include/llvm/Support/FormatProviders.h
M llvm/include/llvm/Support/MD5.h
M llvm/include/llvm/Support/OnDiskHashTable.h
M llvm/include/llvm/Support/ScaledNumber.h
M llvm/lib/Support/OptimizedStructLayout.cpp
M llvm/lib/Support/ScaledNumber.cpp
M llvm/lib/Support/SmallPtrSet.cpp
M llvm/lib/Support/SourceMgr.cpp
M llvm/lib/Support/StringExtras.cpp
Log Message:
-----------
[Support] Use list-initialization for returning pairs (#160447)
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 Support/.
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