1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Object/COFF: Remove useless test.

llvm-svn: 142408
This commit is contained in:
Michael J. Spencer 2011-10-18 19:51:36 +00:00
parent f21a701890
commit 1b471da6b0

View File

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