mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +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:
parent
bebdb204d2
commit
4f02562ec1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user