[cfe-commits] r158420 - /cfe/trunk/lib/Lex/HeaderSearch.cpp

Richard Trieu rtrieu at google.com
Wed Jun 13 13:52:36 PDT 2012


Author: rtrieu
Date: Wed Jun 13 15:52:36 2012
New Revision: 158420

URL: http://llvm.org/viewvc/llvm-project?rev=158420&view=rev
Log:
Rename a loop variable to silence a gcc warning.

Modified:
    cfe/trunk/lib/Lex/HeaderSearch.cpp

Modified: cfe/trunk/lib/Lex/HeaderSearch.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/HeaderSearch.cpp?rev=158420&r1=158419&r2=158420&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/HeaderSearch.cpp (original)
+++ cfe/trunk/lib/Lex/HeaderSearch.cpp Wed Jun 13 15:52:36 2012
@@ -512,9 +512,9 @@
 
     // If the filename matches a known system header prefix, override
     // whether the file is a system header.
-    for (unsigned i = SystemHeaderPrefixes.size(); i; --i) {
-      if (Filename.startswith(SystemHeaderPrefixes[i-1].first)) {
-        HFI.DirInfo = SystemHeaderPrefixes[i-1].second ? SrcMgr::C_System
+    for (unsigned j = SystemHeaderPrefixes.size(); j; --j) {
+      if (Filename.startswith(SystemHeaderPrefixes[j-1].first)) {
+        HFI.DirInfo = SystemHeaderPrefixes[j-1].second ? SrcMgr::C_System
                                                        : SrcMgr::C_User;
         break;
       }





More information about the cfe-commits mailing list