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

Bug fix courtesy of Anshu Dasgupta

llvm-svn: 14011
This commit is contained in:
Chris Lattner 2004-06-04 17:03:11 +00:00
parent fffcf9c9fb
commit 11d0f8d30e

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