mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-15 22:25:31 +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:
@@ -199,9 +199,8 @@ bool error(std::error_code EC) {
|
||||
}
|
||||
|
||||
bool relocAddressLess(RelocationRef a, RelocationRef b) {
|
||||
uint64_t a_addr, b_addr;
|
||||
if (error(a.getOffset(a_addr))) exit(ReturnValue);
|
||||
if (error(b.getOffset(b_addr))) exit(ReturnValue);
|
||||
uint64_t a_addr = a.getOffset();
|
||||
uint64_t b_addr = b.getOffset();
|
||||
return a_addr < b_addr;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user