[llvm-commits] [llvm] r129720 - /llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
Eli Friedman
eli.friedman at gmail.com
Mon Apr 18 14:21:37 PDT 2011
Author: efriedma
Date: Mon Apr 18 16:21:37 2011
New Revision: 129720
URL: http://llvm.org/viewvc/llvm-project?rev=129720&view=rev
Log:
Simplify declarations slightly by using typedefs.
Modified:
llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
Modified: llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp?rev=129720&r1=129719&r2=129720&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp Mon Apr 18 16:21:37 2011
@@ -363,8 +363,7 @@
}
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 @@
}
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();
}
More information about the llvm-commits
mailing list