diff options
Diffstat (limited to 'flowgraph/node.cpp')
-rw-r--r-- | flowgraph/node.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/flowgraph/node.cpp b/flowgraph/node.cpp index 9b68d74..e0912dc 100644 --- a/flowgraph/node.cpp +++ b/flowgraph/node.cpp @@ -6,6 +6,14 @@ using namespace FlowGraph; +FlowGraph::Data& Node::destination() +{ + if (mOperands.size() < 1) + throw std::runtime_error("ICE: No destination operand available"); + + return mOperands[0]; +} + // 4 byte for now Data FlowGraph::MakeConstantInt(int i) { |