fix an embarassing typo that resulted in llvm-gcc bootstrap miscompare
authorChris Lattner <sabre@nondot.org>
Sat, 12 Sep 2009 00:49:00 +0000 (00:49 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 12 Sep 2009 00:49:00 +0000 (00:49 +0000)
because the sorting wasn't sorting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81592 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp

index 64d0315ba47a1993efac1a62c25b5665adf68ce3..f25c1a3b4b0a98ffc4ffae77baa704519894328f 100644 (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());
 }