Change range-based for-loops to be -Wrange-loop-analysis clean.

No functionality change.

llvm-svn: 234963
This commit is contained in:
Richard Trieu
2015-04-15 01:21:15 +00:00
parent bb61825cd5
commit 6b1aa5f5e1
8 changed files with 23 additions and 20 deletions

View File

@@ -262,7 +262,7 @@ std::error_code COFFObjectFile::getSymbolSize(DataRefImpl Ref,
}
const section_iterator SecEnd = section_end();
uint64_t AfterAddr = UnknownAddressOrSize;
for (const symbol_iterator &SymbI : symbols()) {
for (const symbol_iterator SymbI : symbols()) {
section_iterator SecI = SecEnd;
if (std::error_code EC = SymbI->getSection(SecI))
return EC;