Fix a warning. [-Wsign-compare]

FIXME: Should "Level" be unsigned?
llvm-svn: 240391
This commit is contained in:
NAKAMURA Takumi 2015-06-23 10:01:20 +00:00
parent f00654e31b
commit 0332edac98
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&