Skip to content

Commit

Permalink
Merge c321c41 into de1c041
Browse files Browse the repository at this point in the history
  • Loading branch information
kpp committed Jul 4, 2015
2 parents de1c041 + c321c41 commit 913b12f
Show file tree
Hide file tree
Showing 26 changed files with 1,427 additions and 603 deletions.
8 changes: 5 additions & 3 deletions include/analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ class ControlGraph {
nodes_iterator nodes_end() { return m_nodes.end(); }

ControlNode* newNode(ControlNode::TNodeType type) {
assert(type == ControlNode::ntInstruction
|| type == ControlNode::ntPhi
|| type == ControlNode::ntTau
);

ControlNode* node = 0;

switch (type) {
Expand All @@ -355,9 +360,6 @@ class ControlGraph {
case ControlNode::ntTau:
node = new TauNode(m_lastNodeIndex);
break;

default:
assert(false);
}

m_lastNodeIndex++;
Expand Down
Loading

0 comments on commit 913b12f

Please sign in to comment.