]> granicus.if.org Git - clang/commitdiff
Revised per Dmitri's comments. My first exposure to range-based for loops, thanks!
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Thu, 17 Apr 2014 18:17:36 +0000 (18:17 +0000)
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Thu, 17 Apr 2014 18:17:36 +0000 (18:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206483 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/GlobalModuleIndex.cpp

index 9f932ab172552d08f6096a36bc15d04151f9fce8..631683d92f04babd9d8adb053615f4b4d030cdd3 100644 (file)
@@ -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();