aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-04 17:03:11 +0000
committerChris Lattner <sabre@nondot.org>2004-06-04 17:03:11 +0000
commit4f02562ec18e4690d46ecbfdaf967806ad072bdd (patch)
tree9b051b1ed5d2805bf9ec9dc44e164b12a9b69351 /include/llvm/Target
parentbebdb204d225dffbb98129348224a21bbe72a033 (diff)
downloadexternal_llvm-4f02562ec18e4690d46ecbfdaf967806ad072bdd.zip
external_llvm-4f02562ec18e4690d46ecbfdaf967806ad072bdd.tar.gz
external_llvm-4f02562ec18e4690d46ecbfdaf967806ad072bdd.tar.bz2
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
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/MRegisterInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h
index e54a354..1268749 100644
--- a/include/llvm/Target/MRegisterInfo.h
+++ b/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;
}