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:
parent
f21a701890
commit
1b471da6b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user