mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 08:46:23 +00:00
Make DominanceFrontier::addBasicBlock return the iterator for the newly
inserted block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfd5e3d7b1
commit
70b2bee8e7
@ -905,9 +905,9 @@ public:
|
||||
iterator find(BasicBlock *B) { return Frontiers.find(B); }
|
||||
const_iterator find(BasicBlock *B) const { return Frontiers.find(B); }
|
||||
|
||||
void addBasicBlock(BasicBlock *BB, const DomSetType &frontier) {
|
||||
iterator addBasicBlock(BasicBlock *BB, const DomSetType &frontier) {
|
||||
assert(find(BB) == end() && "Block already in DominanceFrontier!");
|
||||
Frontiers.insert(std::make_pair(BB, frontier));
|
||||
return Frontiers.insert(std::make_pair(BB, frontier)).first;
|
||||
}
|
||||
|
||||
/// removeBlock - Remove basic block BB's frontier.
|
||||
|
Loading…
Reference in New Issue
Block a user