[Core] Comparison for unsigned >= 0 is redundant. NFCI.

llvm-svn: 317145
This commit is contained in:
Davide Italiano 2017-11-01 23:49:23 +00:00
parent 014ef593aa
commit 43252d5390
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}