From 4f02562ec18e4690d46ecbfdaf967806ad072bdd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 4 Jun 2004 17:03:11 +0000 Subject: [PATCH] Fix a nasty bug that caused areAliases to always return false. Bug fix courtesy of Anshu Dasgupta git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14011 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/MRegisterInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h index e54a354f138..1268749c459 100644 --- a/include/llvm/Target/MRegisterInfo.h +++ b/include/llvm/Target/MRegisterInfo.h @@ -196,7 +196,7 @@ public: /// 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; }