projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bebdb20
)
Fix a nasty bug that caused areAliases to always return false.
author
Chris Lattner
<sabre@nondot.org>
Fri, 4 Jun 2004 17:03:11 +0000
(17:03 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 4 Jun 2004 17:03:11 +0000
(17:03 +0000)
Bug fix courtesy of Anshu Dasgupta
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14011
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Target/MRegisterInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/Target/MRegisterInfo.h
b/include/llvm/Target/MRegisterInfo.h
index e54a354f138b69621f09e5606ba7850b59f00a67..1268749c459a571d825e2ae351eebd6165103277 100644
(file)
--- 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 == reg
A
) return true;
+ if (*Alias == reg
B
) return true;
return false;
}