diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-06-04 17:03:11 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-06-04 17:03:11 +0000 |
| commit | 1d79ba7edb59b1ed894f5aeee8bad0b4cab5331a (patch) | |
| tree | 6f2c2e403d33d2fc85a6da406584bd977c738c5d /llvm/include | |
| parent | aff10d0461dca39be874662fbfe479f5c34a9677 (diff) | |
| download | bcm5719-llvm-1d79ba7edb59b1ed894f5aeee8bad0b4cab5331a.tar.gz bcm5719-llvm-1d79ba7edb59b1ed894f5aeee8bad0b4cab5331a.zip | |
Fix a nasty bug that caused areAliases to always return false.
Bug fix courtesy of Anshu Dasgupta
llvm-svn: 14011
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Target/MRegisterInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Target/MRegisterInfo.h b/llvm/include/llvm/Target/MRegisterInfo.h index e54a354f138..1268749c459 100644 --- a/llvm/include/llvm/Target/MRegisterInfo.h +++ b/llvm/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; } |

