aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Object
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-10-18 19:51:36 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-10-18 19:51:36 +0000
commit7c24665390a79ee05a0a562ff689e52d4135063e (patch)
tree20eee5c90e5381f4fc9cc94e2a8305d92eef5b7e /lib/Object
parent22ff0f33dbfe99d7308658f07986c1014ea5aff2 (diff)
downloadexternal_llvm-7c24665390a79ee05a0a562ff689e52d4135063e.zip
external_llvm-7c24665390a79ee05a0a562ff689e52d4135063e.tar.gz
external_llvm-7c24665390a79ee05a0a562ff689e52d4135063e.tar.bz2
Object/COFF: Remove useless test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/COFFObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp
index e52a31f..a048cf5 100644
--- a/lib/Object/COFFObjectFile.cpp
+++ b/lib/Object/COFFObjectFile.cpp
@@ -573,7 +573,7 @@ error_code COFFObjectFile::getString(uint32_t offset,
error_code COFFObjectFile::getSymbol(uint32_t index,
const coff_symbol *&Result) const {
- if (index >= 0 && index < Header->NumberOfSymbols)
+ if (index < Header->NumberOfSymbols)
Result = SymbolTable + index;
else
return object_error::parse_failed;