From: Michael Liao Date: Mon, 4 Nov 2019 14:59:39 +0000 (-0500) Subject: Fix compilation warning. NFC. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d142ec6fef9a053c9fd9edb5a388203cdb121e65;p=platform%2Fupstream%2Fllvm.git Fix compilation warning. NFC. --- diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp index d8c18ef..d550eea 100644 --- a/clang/lib/Driver/ToolChains/Darwin.cpp +++ b/clang/lib/Driver/ToolChains/Darwin.cpp @@ -1527,8 +1527,8 @@ getDeploymentTargetFromEnvironmentVariables(const Driver &TheDriver, Targets[Darwin::TvOS] = ""; } else { // Don't allow conflicts in any other platform. - int FirstTarget = llvm::array_lengthof(Targets); - for (int I = 0; I != llvm::array_lengthof(Targets); ++I) { + unsigned FirstTarget = llvm::array_lengthof(Targets); + for (unsigned I = 0; I != llvm::array_lengthof(Targets); ++I) { if (Targets[I].empty()) continue; if (FirstTarget == llvm::array_lengthof(Targets))