projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
014ef59
)
[Core] Comparison for unsigned >= 0 is redundant. NFCI.
author
Davide Italiano
<davide@freebsd.org>
Wed, 1 Nov 2017 23:49:23 +0000
(23:49 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Wed, 1 Nov 2017 23:49:23 +0000
(23:49 +0000)
llvm-svn: 317145
lldb/source/Core/ArchSpec.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Core/ArchSpec.cpp
b/lldb/source/Core/ArchSpec.cpp
index
dc2b982
..
3837a64
100644
(file)
--- a/
lldb/source/Core/ArchSpec.cpp
+++ b/
lldb/source/Core/ArchSpec.cpp
@@
-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;
}