From e4b10534bd903b7d314ef66fecd935f11448532d Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Sun, 9 Mar 2014 03:50:36 +0000 Subject: [PATCH] Fix build break. llvm-svn: 203366 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index f2e629ff639..3aa6b5ae8b1 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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); }