diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-10-18 19:51:36 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-10-18 19:51:36 +0000 |
commit | 7c24665390a79ee05a0a562ff689e52d4135063e (patch) | |
tree | 20eee5c90e5381f4fc9cc94e2a8305d92eef5b7e /lib/Object | |
parent | 22ff0f33dbfe99d7308658f07986c1014ea5aff2 (diff) | |
download | external_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.cpp | 2 |
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; |