mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Simplify code a bit, add an assertion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4b28793c85
commit
934487a9cc
@ -296,9 +296,8 @@ public:
|
||||
///
|
||||
Node *createNewNode(BasicBlock *BB, Node *IDomNode) {
|
||||
assert(getNode(BB) == 0 && "Block already in dominator tree!");
|
||||
Node *New = Nodes[BB] = new Node(BB, IDomNode);
|
||||
if (IDomNode) IDomNode->addChild(New);
|
||||
return New;
|
||||
assert(IDomNode && "Not immediate dominator specified for block!");
|
||||
return Nodes[BB] = IDomNode->addChild(new Node(BB, IDomNode));
|
||||
}
|
||||
|
||||
/// changeImmediateDominator - This method is used to update the dominator
|
||||
|
Loading…
Reference in New Issue
Block a user