diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index 7efb003b276..dfa29093e68 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -1230,7 +1230,7 @@ bool LoopVectorizationLegality::AddReductionVar(PHINode *Phi, // If the instruction has no users then this is a broken // chain and can't be a reduction variable. - if (Iter->use_begin() == Iter->use_end()) + if (Iter->use_empty()) return false; // For each of the *users* of iter.