mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
Fix a cut-and-paste error in the changes for r264187 which I think is
the cause of the tools/llvm-objdump/X86/macho-symbolized-disassembly.test crashing on linux. Either way clearly incorrect code. llvm-svn: 264198
This commit is contained in:
parent
da449610eb
commit
2d85e6eaeb
@ -179,7 +179,7 @@ struct SymbolSorter {
|
||||
ErrorOr<SymbolRef::Type> BTypeOrErr = B.getType();
|
||||
if (std::error_code EC = BTypeOrErr.getError())
|
||||
report_fatal_error(EC.message());
|
||||
SymbolRef::Type BType = *ATypeOrErr;
|
||||
SymbolRef::Type BType = *BTypeOrErr;
|
||||
uint64_t AAddr = (AType != SymbolRef::ST_Function) ? 0 : A.getValue();
|
||||
uint64_t BAddr = (BType != SymbolRef::ST_Function) ? 0 : B.getValue();
|
||||
return AAddr < BAddr;
|
||||
|
Loading…
Reference in New Issue
Block a user