Skip to content

Commit

Permalink
Merge 9b5beee into de1c041
Browse files Browse the repository at this point in the history
  • Loading branch information
kpp committed Jul 5, 2015
2 parents de1c041 + 9b5beee commit d4cc45b
Show file tree
Hide file tree
Showing 27 changed files with 1,700 additions and 604 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 d4cc45b

Please sign in to comment.