1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Fix build break.

llvm-svn: 203366
This commit is contained in:
Ahmed Charles 2014-03-09 03:50:36 +00:00
parent fad39ebe19
commit e4b10534bd

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