fix an embarassing typo that resulted in llvm-gcc bootstrap miscompare

because the sorting wasn't sorting.

llvm-svn: 81592
This commit is contained in:
Chris Lattner 2009-09-12 00:49:00 +00:00
parent 4dc00d3781
commit 37a4e48529
1 changed files with 1 additions and 1 deletions

View File

@ -883,7 +883,7 @@ void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
static int SortSymbolPair(const void *LHS, const void *RHS) {
MCSymbol *LHSS = ((const std::pair<MCSymbol*, MCSymbol*>*)LHS)->first;
MCSymbol *RHSS = ((const std::pair<MCSymbol*, MCSymbol*>*)LHS)->first;
MCSymbol *RHSS = ((const std::pair<MCSymbol*, MCSymbol*>*)RHS)->first;
return LHSS->getName().compare(RHSS->getName());
}