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

Thompson, John John_Thompson at playstation.sony.com
Thu Apr 17 11:27:54 PDT 2014


Sorry, I forgot to change the comment in my script, per Richard's comment.

-John

-----Original Message-----
From: cfe-commits-bounces at cs.uiuc.edu [mailto:cfe-commits-bounces at cs.uiuc.edu] On Behalf Of John Thompson
Sent: Thursday, April 17, 2014 11:18 AM
To: cfe-commits at cs.uiuc.edu
Subject: r206483 - Revised per Dmitri's comments. My first exposure to range-based for loops, thanks!

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();


_______________________________________________
cfe-commits mailing list
cfe-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits






More information about the cfe-commits mailing list