diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index dddc18fcefa..04cc11dea04 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -766,8 +766,8 @@ static ConstantInt* GetWeight(Instruction* I, int Pos) { return 0; } -/// Scale the given weights based on the new TI's metadata. Scaling is done by -/// multiplying every weight by the sum of the successor's weights. +/// Scale the given weights based on the successor TI's metadata. Scaling is +/// done by multiplying every weight by the sum of the successor's weights. static void ScaleWeights(Instruction* STI, MutableArrayRef Weights) { // Sum the successor's weights assert(HasBranchWeights(STI));