Skip to content

Commit

Permalink
Adds CallContext::operator[index]
Browse files Browse the repository at this point in the history
Issue: #17
  • Loading branch information
0x7CFE committed May 21, 2016
1 parent eeebbbf commit 7f43e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/inference.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ class CallContext {
Type& getReturnType() { return m_returnType; }

Type& getInstructionType(std::size_t index) { return m_instructions[index]; }
Type& operator[] (std::size_t index) { return m_instructions[index]; }
Type& operator[] (const ControlNode& node) { return getInstructionType(node.getIndex()); }


private:
const std::size_t m_index;
const Type m_arguments;
Expand Down

0 comments on commit 7f43e3f

Please sign in to comment.