summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objcopy
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2019-12-22 19:11:17 +0100
committerMark de Wever <koraq@xs4all.nl>2019-12-22 19:11:17 +0100
commit536c9a604e82f0c0284595344b8ab9dd601071cf (patch)
tree0241c4f83b9fa30a99438acd2a5192ccae63955a /llvm/tools/llvm-objcopy
parente8d448ec255c7034cd00d1e0d1469eb6b31682ae (diff)
downloadbcm5719-llvm-536c9a604e82f0c0284595344b8ab9dd601071cf.tar.gz
bcm5719-llvm-536c9a604e82f0c0284595344b8ab9dd601071cf.zip
[Tools] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall. Differential Revision: https://reviews.llvm.org/D71808
Diffstat (limited to 'llvm/tools/llvm-objcopy')
-rw-r--r--llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp b/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
index e5892448033..a0cfd9a5ff8 100644
--- a/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
+++ b/llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
@@ -175,7 +175,7 @@ findBuildID(const CopyConfig &Config, const object::ELFFile<ELFT> &In) {
if (Phdr.p_type != PT_NOTE)
continue;
Error Err = Error::success();
- for (const auto &Note : In.notes(Phdr, Err))
+ for (auto Note : In.notes(Phdr, Err))
if (Note.getType() == NT_GNU_BUILD_ID && Note.getName() == ELF_NOTE_GNU)
return Note.getDesc();
if (Err)
OpenPOWER on IntegriCloud