diff options
author | Gregory Alfonso <gfunni234@gmail.com> | 2023-09-27 13:39:30 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-09-27 13:39:30 -0700 |
commit | 40dc8e6889c055172dfa66823b3e0aa073240086 (patch) | |
tree | 4247811a3e9a19254e24f5669d73d205c7b41432 /llvm/lib/Object/COFFImportFile.cpp | |
parent | ab3e647b893e1063838a7aff5477c53338992558 (diff) | |
download | llvm-40dc8e6889c055172dfa66823b3e0aa073240086.zip llvm-40dc8e6889c055172dfa66823b3e0aa073240086.tar.gz llvm-40dc8e6889c055172dfa66823b3e0aa073240086.tar.bz2 |
[NFC] Use const references to avoid copying objects in for-loops
Differential Revision: https://reviews.llvm.org/D139487
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
-rw-r--r-- | llvm/lib/Object/COFFImportFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/COFFImportFile.cpp b/llvm/lib/Object/COFFImportFile.cpp index 0e99fc9..a567ecd 100644 --- a/llvm/lib/Object/COFFImportFile.cpp +++ b/llvm/lib/Object/COFFImportFile.cpp @@ -578,7 +578,7 @@ Error writeImportLibrary(StringRef ImportName, StringRef Path, std::vector<uint8_t> NullThunk; Members.push_back(OF.createNullThunk(NullThunk)); - for (COFFShortExport E : Exports) { + for (const COFFShortExport &E : Exports) { if (E.Private) continue; |