mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-25 23:06:41 +00:00
[CFLAA] Remove tautological comparison
Fixes this (the warning is right, the unsigned value is not negative): lib/Analysis/StratifiedSets.h:689:53: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] bool inbounds(StratifiedIndex N) const { return N >= 0 && N < Links.size(); } llvm-svn: 216987
This commit is contained in:
parent
0622b98f0b
commit
c195a929be
@ -686,7 +686,7 @@ private:
|
||||
return Link;
|
||||
}
|
||||
|
||||
bool inbounds(StratifiedIndex N) const { return N >= 0 && N < Links.size(); }
|
||||
bool inbounds(StratifiedIndex N) const { return N < Links.size(); }
|
||||
};
|
||||
}
|
||||
#endif // LLVM_ADT_STRATIFIEDSETS_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user