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:
Evan Cheng 2006-10-12 19:13:59 +00:00
parent cf12ec4897
commit 494cec6e58

View File

@ -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;
}
}