diff options
Diffstat (limited to 'contrib/llvm/lib/Transforms/Scalar/Reassociate.cpp')
| -rw-r--r-- | contrib/llvm/lib/Transforms/Scalar/Reassociate.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm/lib/Transforms/Scalar/Reassociate.cpp b/contrib/llvm/lib/Transforms/Scalar/Reassociate.cpp index 3dcab6090789..ef29d4141600 100644 --- a/contrib/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/contrib/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -982,7 +982,7 @@ static unsigned FindInOperandList(SmallVectorImpl<ValueEntry> &Ops, unsigned i,  /// Emit a tree of add instructions, summing Ops together  /// and returning the result.  Insert the tree before I.  static Value *EmitAddTreeOfValues(Instruction *I, -                                  SmallVectorImpl<WeakVH> &Ops){ +                                  SmallVectorImpl<WeakTrackingVH> &Ops) {    if (Ops.size() == 1) return Ops.back();    Value *V1 = Ops.back(); @@ -1559,7 +1559,7 @@ Value *ReassociatePass::OptimizeAdd(Instruction *I,              ? BinaryOperator::CreateAdd(MaxOccVal, MaxOccVal)              : BinaryOperator::CreateFAdd(MaxOccVal, MaxOccVal); -    SmallVector<WeakVH, 4> NewMulOps; +    SmallVector<WeakTrackingVH, 4> NewMulOps;      for (unsigned i = 0; i != Ops.size(); ++i) {        // Only try to remove factors from expressions we're allowed to.        BinaryOperator *BOp =  | 
