[cfe-commits] r127370 - /cfe/trunk/lib/Serialization/ChainedIncludesSource.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Wed Mar 9 15:15:22 PST 2011


Author: akirtzidis
Date: Wed Mar  9 17:15:22 2011
New Revision: 127370

URL: http://llvm.org/viewvc/llvm-project?rev=127370&view=rev
Log:
Silence gcc warnings.

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

Modified: cfe/trunk/lib/Serialization/ChainedIncludesSource.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ChainedIncludesSource.cpp?rev=127370&r1=127369&r2=127370&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ChainedIncludesSource.cpp (original)
+++ cfe/trunk/lib/Serialization/ChainedIncludesSource.cpp Wed Mar  9 17:15:22 2011
@@ -114,10 +114,10 @@
     } else {
       assert(!serialBufs.empty());
       llvm::SmallVector<llvm::MemoryBuffer *, 4> bufs;
-      for (unsigned i = 0, e = serialBufs.size(); i != e; ++i) {
+      for (unsigned si = 0, se = serialBufs.size(); si != se; ++si) {
         bufs.push_back(llvm::MemoryBuffer::getMemBufferCopy(
-                              llvm::StringRef(serialBufs[i]->getBufferStart(),
-                                              serialBufs[i]->getBufferSize())));
+                             llvm::StringRef(serialBufs[si]->getBufferStart(),
+                                             serialBufs[si]->getBufferSize())));
       }
       std::string pchName = includes[i-1];
       llvm::raw_string_ostream os(pchName);





More information about the cfe-commits mailing list