Fix Visual C++ warning, Program.inc(85): warning C4018: '<' : signed/unsigned mismatch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221252 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Yaron Keren 2014-11-04 09:22:41 +00:00
parent 8f5dab8bb5
commit 3f4bf44b1c

View File

@ -82,7 +82,7 @@ ErrorOr<std::string> sys::findProgramByName(StringRef Name,
std::u16string PathStorage;
if (!Paths.empty()) {
PathStorage.reserve(Paths.size() * MAX_PATH);
for (int i = 0; i < Paths.size(); ++i) {
for (unsigned i = 0; i < Paths.size(); ++i) {
if (i)
PathStorage.push_back(';');
StringRef P = Paths[i];