[clang] 1efc191 - [clang][Driver] Iterate with const reference (NFC)
Youngsuk Kim via cfe-commits
cfe-commits at lists.llvm.org
Fri May 3 03:28:39 PDT 2024
Author: Youngsuk Kim
Date: 2024-05-03T05:18:27-05:00
New Revision: 1efc1918502bd8c9cf2431af38d754878eac071a
URL: https://github.com/llvm/llvm-project/commit/1efc1918502bd8c9cf2431af38d754878eac071a
DIFF: https://github.com/llvm/llvm-project/commit/1efc1918502bd8c9cf2431af38d754878eac071a.diff
LOG: [clang][Driver] Iterate with const reference (NFC)
Closes #90282
Added:
Modified:
clang/lib/Driver/ToolChains/Clang.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 2cb0c721354499..f9ca76a5ac8007 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -8105,7 +8105,7 @@ static EHFlags parseClangCLEHFlags(const Driver &D, const ArgList &Args,
std::vector<std::string> EHArgs =
Args.getAllArgValues(options::OPT__SLASH_EH);
- for (auto EHVal : EHArgs) {
+ for (const auto &EHVal : EHArgs) {
for (size_t I = 0, E = EHVal.size(); I != E; ++I) {
switch (EHVal[I]) {
case 'a':
More information about the cfe-commits
mailing list