mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-21 03:32:29 +00:00
Fix bug found by warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2453dff96a
commit
33a1805f35
@ -311,7 +311,8 @@ error_code COFFObjectFile::getSectionName(DataRefImpl Sec,
|
||||
// Check for string table entry. First byte is '/'.
|
||||
if (name[0] == '/') {
|
||||
uint32_t Offset;
|
||||
name.substr(1).getAsInteger(10, Offset);
|
||||
if (name.substr(1).getAsInteger(10, Offset))
|
||||
return object_error::parse_failed;
|
||||
if (error_code ec = getString(Offset, name))
|
||||
return ec;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user