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:
parent
fad39ebe19
commit
e4b10534bd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user