forked from OSchip/llvm-project
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
bf623017b7
commit
74f58d4121
|
@ -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