mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-03 02:17:41 +00:00
Fix build break.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
36b699f2b1
commit
9c3328fc7f
@ -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…
x
Reference in New Issue
Block a user