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:
Kevin Enderby 2016-03-23 21:45:21 +00:00
parent bf623017b7
commit 74f58d4121
1 changed files with 1 additions and 1 deletions

View File

@ -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;