From: John Thompson Date: Thu, 17 Apr 2014 18:17:36 +0000 (+0000) Subject: Revised per Dmitri's comments. My first exposure to range-based for loops, thanks! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2c49d2a4ca5f326da96779939dd66cb1a892bc1;p=clang Revised per Dmitri's comments. My first exposure to range-based for loops, thanks! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206483 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Serialization/GlobalModuleIndex.cpp b/lib/Serialization/GlobalModuleIndex.cpp index 9f932ab172..631683d92f 100644 --- a/lib/Serialization/GlobalModuleIndex.cpp +++ b/lib/Serialization/GlobalModuleIndex.cpp @@ -352,7 +352,7 @@ void GlobalModuleIndex::printStats() { void GlobalModuleIndex::dump() { llvm::errs() << "*** Global Module Index Dump:\n"; llvm::errs() << "Module files:\n"; - for (auto MI : Modules) { + for (auto &MI : Modules) { llvm::errs() << "** " << MI.FileName << "\n"; if (MI.File) MI.File->dump();