forked from OSchip/llvm-project
Fix a warning. [-Wsign-compare]
FIXME: Should "Level" be unsigned? llvm-svn: 240391
This commit is contained in:
parent
f00654e31b
commit
0332edac98
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue