[NewGVN] Fix copy/paste mistake in cast

llvm-svn: 364130
This commit is contained in:
Nikita Popov 2019-06-22 10:20:13 +00:00
parent e96fda726e
commit 8c8e40f763
1 changed files with 1 additions and 1 deletions

View File

@ -2096,7 +2096,7 @@ void NewGVN::addPredicateUsers(const PredicateBase *PB, Instruction *I) const {
if (auto *PBranch = dyn_cast<PredicateBranch>(PB)) if (auto *PBranch = dyn_cast<PredicateBranch>(PB))
PredicateToUsers[PBranch->Condition].insert(I); PredicateToUsers[PBranch->Condition].insert(I);
else if (auto *PAssume = dyn_cast<PredicateBranch>(PB)) else if (auto *PAssume = dyn_cast<PredicateAssume>(PB))
PredicateToUsers[PAssume->Condition].insert(I); PredicateToUsers[PAssume->Condition].insert(I);
} }