Modify the interface BranchProbability::normalizeProbabilities to let it accept a...
[oota-llvm.git] / include / llvm / CodeGen / MachineBasicBlock.h
index 4f76b21fb00fca4529161e9426beb127b45bc0de..a2b1a850ec76dbb255bf746d047175b769d0ca46 100644 (file)
@@ -476,7 +476,7 @@ public:
   /// Normalize probabilities of all successors so that the sum of them becomes
   /// one.
   void normalizeSuccProbs() {
-    BranchProbability::normalizeProbabilities(Probs);
+    BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
   }
 
   /// Remove successor from the successors list of this MachineBasicBlock. The