From e2c49d2a4ca5f326da96779939dd66cb1a892bc1 Mon Sep 17 00:00:00 2001 From: John Thompson Date: Thu, 17 Apr 2014 18:17:36 +0000 Subject: [PATCH] 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 --- lib/Serialization/GlobalModuleIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.50.1