mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-18 03:37:31 +00:00
Object/COFF: Remove useless test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22ff0f33db
commit
7c24665390
@ -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…
x
Reference in New Issue
Block a user