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
This commit is contained in:
Chris Lattner 2004-06-04 17:03:11 +00:00
parent bebdb204d2
commit 4f02562ec1

View File

@ -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;
}