1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02: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:
Kevin Enderby 2016-03-23 21:45:21 +00:00
parent da449610eb
commit 2d85e6eaeb

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;