mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-08 09:43:20 +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(); } git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
79ec2ed417
commit
41b6e327f7
@ -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