forked from OSchip/llvm-project
[Core] Comparison for unsigned >= 0 is redundant. NFCI.
llvm-svn: 317145
This commit is contained in:
parent
014ef593aa
commit
43252d5390
|
@ -516,7 +516,7 @@ static const CoreDefinition *FindCoreDefinition(llvm::StringRef name) {
|
|||
}
|
||||
|
||||
static inline const CoreDefinition *FindCoreDefinition(ArchSpec::Core core) {
|
||||
if (core >= 0 && core < llvm::array_lengthof(g_core_definitions))
|
||||
if (core < llvm::array_lengthof(g_core_definitions))
|
||||
return &g_core_definitions[core];
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue