From 4ef2f6a95146423a1947b98458cc95c00a8b3ebd Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Wed, 13 Jun 2012 20:52:36 +0000 Subject: [PATCH] Rename a loop variable to silence a gcc warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158420 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/HeaderSearch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Lex/HeaderSearch.cpp b/lib/Lex/HeaderSearch.cpp index 4531335b75..3bdd076ab6 100644 --- a/lib/Lex/HeaderSearch.cpp +++ b/lib/Lex/HeaderSearch.cpp @@ -512,9 +512,9 @@ const FileEntry *HeaderSearch::LookupFile( // 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; } -- 2.40.0