[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h

Chris Lattner lattner at cs.uiuc.edu
Fri Jun 4 12:08:02 PDT 2004


Changes in directory llvm/include/llvm/Target:

MRegisterInfo.h updated: 1.41 -> 1.42

---
Log message:

Fix a nasty bug that caused areAliases to always return false.

Bug fix courtesy of Anshu Dasgupta



---
Diffs of the changes:  (+1 -1)

Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.41 llvm/include/llvm/Target/MRegisterInfo.h:1.42
--- llvm/include/llvm/Target/MRegisterInfo.h:1.41	Sun Mar 14 14:14:27 2004
+++ llvm/include/llvm/Target/MRegisterInfo.h	Fri Jun  4 12:03:11 2004
@@ -196,7 +196,7 @@
   /// false otherwise
   bool areAliases(unsigned regA, unsigned regB) const {
     for (const unsigned *Alias = getAliasSet(regA); *Alias; ++Alias)
-      if (*Alias == regA) return true;
+      if (*Alias == regB) return true;
     return false;
   }
 





More information about the llvm-commits mailing list