mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
Doh. This wasn't causing problems by luck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf12ec4897
commit
494cec6e58
@ -220,7 +220,7 @@ static SDNode *findFlagUse(SDNode *N) {
|
||||
SDNode *User = *I;
|
||||
for (unsigned i = 0, e = User->getNumOperands(); i != e; ++i) {
|
||||
SDOperand Op = User->getOperand(i);
|
||||
if (Op.ResNo == FlagResNo)
|
||||
if (Op.Val == N && Op.ResNo == FlagResNo)
|
||||
return User;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user