diff options
Diffstat (limited to 'src/mir/mir.hpp')
-rw-r--r-- | src/mir/mir.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mir/mir.hpp b/src/mir/mir.hpp index 3ce115b8..2a623d3c 100644 --- a/src/mir/mir.hpp +++ b/src/mir/mir.hpp @@ -285,6 +285,10 @@ TAGGED_UNION(Statement, Assign, }) ); extern ::std::ostream& operator<<(::std::ostream& os, const Statement& x); +extern bool operator==(const Statement& a, const Statement& b); +static inline bool operator!=(const Statement& a, const Statement& b) { + return !(a == b); +} struct BasicBlock { |