mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
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:
@@ -196,7 +196,7 @@ public:
|
|||||||
/// false otherwise
|
/// false otherwise
|
||||||
bool areAliases(unsigned regA, unsigned regB) const {
|
bool areAliases(unsigned regA, unsigned regB) const {
|
||||||
for (const unsigned *Alias = getAliasSet(regA); *Alias; ++Alias)
|
for (const unsigned *Alias = getAliasSet(regA); *Alias; ++Alias)
|
||||||
if (*Alias == regA) return true;
|
if (*Alias == regB) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user