Searched refs:OtherW (Results 1 – 1 of 1) sorted by relevance
118 static void combineWeight(Weight &W, const Weight &OtherW) { in combineWeight() argument119 assert(OtherW.TargetNode.isValid()); in combineWeight()121 W = OtherW; in combineWeight()124 assert(W.Type == OtherW.Type); in combineWeight()125 assert(W.TargetNode == OtherW.TargetNode); in combineWeight()126 assert(OtherW.Amount && "Expected non-zero weight"); in combineWeight()127 if (W.Amount > W.Amount + OtherW.Amount) in combineWeight()131 W.Amount += OtherW.Amount; in combineWeight()