Searched refs:OtherW (Results 1 – 1 of 1) sorted by relevance
120 static void combineWeight(Weight &W, const Weight &OtherW) { in combineWeight() argument121 assert(OtherW.TargetNode.isValid()); in combineWeight()123 W = OtherW; in combineWeight()126 assert(W.Type == OtherW.Type); in combineWeight()127 assert(W.TargetNode == OtherW.TargetNode); in combineWeight()128 assert(OtherW.Amount && "Expected non-zero weight"); in combineWeight()129 if (W.Amount > W.Amount + OtherW.Amount) in combineWeight()133 W.Amount += OtherW.Amount; in combineWeight()