Author: Youngsuk Kim Date: 2024-05-03T05:45:17-05:00 New Revision: 2933ef2da9103122a52066a1c680046d1bdacaed
URL: https://github.com/llvm/llvm-project/commit/2933ef2da9103122a52066a1c680046d1bdacaed DIFF: https://github.com/llvm/llvm-project/commit/2933ef2da9103122a52066a1c680046d1bdacaed.diff LOG: [clang][HIPUtility] Iterate by const reference (NFC) Closes #90284 Added: Modified: clang/lib/Driver/ToolChains/HIPUtility.cpp Removed: ################################################################################ diff --git a/clang/lib/Driver/ToolChains/HIPUtility.cpp b/clang/lib/Driver/ToolChains/HIPUtility.cpp index 08c647dfcb6f72..b1ff697b368b13 100644 --- a/clang/lib/Driver/ToolChains/HIPUtility.cpp +++ b/clang/lib/Driver/ToolChains/HIPUtility.cpp @@ -60,9 +60,9 @@ class HIPUndefinedFatBinSymbols { Verbose(C.getArgs().hasArg(options::OPT_v)) { populateSymbols(); if (Verbose) { - for (auto Name : FatBinSymbols) + for (const auto &Name : FatBinSymbols) llvm::errs() << "Found undefined HIP fatbin symbol: " << Name << "\n"; - for (auto Name : GPUBinHandleSymbols) + for (const auto &Name : GPUBinHandleSymbols) llvm::errs() << "Found undefined HIP gpubin handle symbol: " << Name << "\n"; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits