From 4f52d44dce84beac57b6980a17605fef555a47cb Mon Sep 17 00:00:00 2001 From: John Thompson Date: Thu, 17 Apr 2014 18:17:36 +0000 Subject: Revised per Dmitri's comments. My first exposure to range-based for loops, thanks! llvm-svn: 206483 --- clang/lib/Serialization/GlobalModuleIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Serialization') diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp index 9f932ab1725..631683d92f0 100644 --- a/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/clang/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(); -- cgit v1.2.3