diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:34:44 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-05-02 19:34:44 +0000 | 
| commit | 6b943ff3a3f8617113ecbf611cf0f8957e4e19d2 (patch) | |
| tree | fc5f365fb9035b2d0c622bbf06c9bbe8627d7279 /lib/CodeGen/MachineBasicBlock.cpp | |
| parent | d0e4e96dc17a6c1c6de3340842c80f0e187ba349 (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
| -rw-r--r-- | lib/CodeGen/MachineBasicBlock.cpp | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index ccbff0af5b2c..57f3e34d0c5a 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -363,8 +363,7 @@ void MachineBasicBlock::addPredecessor(MachineBasicBlock *pred) {  }  void MachineBasicBlock::removePredecessor(MachineBasicBlock *pred) { -  std::vector<MachineBasicBlock *>::iterator I = -    std::find(Predecessors.begin(), Predecessors.end(), pred); +  pred_iterator I = std::find(Predecessors.begin(), Predecessors.end(), pred);    assert(I != Predecessors.end() && "Pred is not a predecessor of this block!");    Predecessors.erase(I);  } @@ -402,8 +401,7 @@ MachineBasicBlock::transferSuccessorsAndUpdatePHIs(MachineBasicBlock *fromMBB) {  }  bool MachineBasicBlock::isSuccessor(const MachineBasicBlock *MBB) const { -  std::vector<MachineBasicBlock *>::const_iterator I = -    std::find(Successors.begin(), Successors.end(), MBB); +  const_succ_iterator I = std::find(Successors.begin(), Successors.end(), MBB);    return I != Successors.end();  } | 
