From 0332edac98b7953447f0070dc5e20e21734727c7 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 23 Jun 2015 10:01:20 +0000 Subject: [PATCH] Fix a warning. [-Wsign-compare] FIXME: Should "Level" be unsigned? llvm-svn: 240391 --- clang/lib/Sema/SemaOpenMP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 5028ac5..4e45705 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -606,7 +606,7 @@ bool DSAStackTy::hasExplicitDSA( D = D->getCanonicalDecl(); auto StartI = Stack.rbegin(); auto EndI = std::prev(Stack.rend()); - if (std::distance(StartI, EndI) <= Level) + if (std::distance(StartI, EndI) <= (int)Level) return false; std::advance(StartI, Level); return (StartI->SharingMap.count(D) > 0) && StartI->SharingMap[D].RefExpr && -- 2.7.4