Fix build break.

llvm-svn: 203366
This commit is contained in:
Ahmed Charles 2014-03-09 03:50:36 +00:00
parent 4d01fff492
commit 5d461ede5b
1 changed files with 2 additions and 0 deletions

View File

@ -1654,6 +1654,7 @@ Value *BoUpSLP::vectorizeTree() {
Type *Ty = Scalar->getType();
if (!Ty->isVoidTy()) {
#ifndef NDEBUG
for (User *U : Scalar->users()) {
DEBUG(dbgs() << "SLP: \tvalidating user:" << *U << ".\n");
@ -1662,6 +1663,7 @@ Value *BoUpSLP::vectorizeTree() {
(RdxOps && RdxOps->count(U))) &&
"Replacing out-of-tree value with undef");
}
#endif
Value *Undef = UndefValue::get(Ty);
Scalar->replaceAllUsesWith(Undef);
}