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

John Thompson John.Thompson.JTSoftware at gmail.com
Thu Apr 17 11:17:36 PDT 2014


Author: jtsoftware
Date: Thu Apr 17 13:17:36 2014
New Revision: 206483

URL: http://llvm.org/viewvc/llvm-project?rev=206483&view=rev
Log:
Revised per Dmitri's comments. My first exposure to range-based for loops, thanks!

Modified:
    cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp

Modified: cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp?rev=206483&r1=206482&r2=206483&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp (original)
+++ cfe/trunk/lib/Serialization/GlobalModuleIndex.cpp Thu Apr 17 13:17:36 2014
@@ -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();





More information about the cfe-commits mailing list