mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Don't return error_code from function that never fails.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -177,9 +177,7 @@ static std::error_code resolveSymbol(const std::vector<RelocationRef> &Rels,
|
||||
for (std::vector<RelocationRef>::const_iterator I = Rels.begin(),
|
||||
E = Rels.end();
|
||||
I != E; ++I) {
|
||||
uint64_t Ofs;
|
||||
if (std::error_code EC = I->getOffset(Ofs))
|
||||
return EC;
|
||||
uint64_t Ofs = I->getOffset();
|
||||
if (Ofs == Offset) {
|
||||
Sym = *I->getSymbol();
|
||||
return std::error_code();
|
||||
|
Reference in New Issue
Block a user