diff options
author | Fangrui Song <maskray@google.com> | 2020-01-04 11:53:17 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-01-04 12:24:39 -0800 |
commit | 085898d469ab782f0a26f119b109aa8eb5d37745 (patch) | |
tree | 479d0a9153242d442c5ddfec7184653947d4799b /lldb/packages/Python/lldbsuite/test/python_api | |
parent | d12f2a2998450213f065ee3c9b21275416cb7f90 (diff) | |
download | bcm5719-llvm-085898d469ab782f0a26f119b109aa8eb5d37745.tar.gz bcm5719-llvm-085898d469ab782f0a26f119b109aa8eb5d37745.zip |
[ELF] Drop const qualifier to fix -Wrange-loop-analysis. NFC
```
lld/ELF/Relocations.cpp:1622:56: warning: loop variable 'ts' of type 'const std::pair<ThunkSection *, uint32_t>' (aka 'const pair<lld::elf::ThunkSection *, unsigned int>') creates a copy from type 'const std::pair<ThunkSection *, uint32_t>' [-Wrange-loop-analysis]
for (const std::pair<ThunkSection *, uint32_t> ts : isd->thunkSections)
```
Drop const qualifier to fix -Wrange-loop-analysis.
We can make -Wrange-loop-analysis warnings (DiagnoseForRangeConstVariableCopies) on `const A` more
permissive on more types (e.g. POD -> trivially copyable), unfortunately it will not make std::pair
good, because `constexpr pair& operator=(const pair& p);` is unfortunately user-defined.
Reviewed By: Mordante
Differential Revision: https://reviews.llvm.org/D72211
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions