Revised per Dmitri's comments. My first exposure to range-based for loops, thanks!

llvm-svn: 206483
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp
index 9f932ab..631683d 100644
--- a/clang/lib/Serialization/GlobalModuleIndex.cpp
+++ b/clang/lib/Serialization/GlobalModuleIndex.cpp
@@ -352,7 +352,7 @@
 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();