[all-commits] [llvm/llvm-project] bf241e: [clang] Avoid creating temporary instances of std:...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Wed May 21 20:33:29 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bf241e8349f4103af198c2d37eb7d09062fdaae1
https://github.com/llvm/llvm-project/commit/bf241e8349f4103af198c2d37eb7d09062fdaae1
Author: Kazu Hirata <kazu at google.com>
Date: 2025-05-21 (Wed, 21 May 2025)
Changed paths:
M clang/lib/Driver/ToolChain.cpp
M clang/lib/Testing/CommandLineArgs.cpp
Log Message:
-----------
[clang] Avoid creating temporary instances of std::string (NFC) (#140988)
lookupTarget takes StringRef and internally creates an instance of
std::string with the StringRef as part of constructing Triple, so we
don't need to create temporary instances of std::string on our own.
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