summaryrefslogtreecommitdiff
path: root/src/mir/mir.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-31 18:30:42 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-31 18:30:42 +0800
commitad264bcc69545a2695115b72fdd286c09df062bd (patch)
tree3a322fe0398f3c791ea21061e8848ddd49dc7004 /src/mir/mir.hpp
parente35aa35f97133edc36e206ab38b1fa8ab9d88df5 (diff)
downloadmrust-ad264bcc69545a2695115b72fdd286c09df062bd.tar.gz
MIR Optimise - Allow assignment elimination with variables
Diffstat (limited to 'src/mir/mir.hpp')
-rw-r--r--src/mir/mir.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mir/mir.hpp b/src/mir/mir.hpp
index 93bd7244..cacaea99 100644
--- a/src/mir/mir.hpp
+++ b/src/mir/mir.hpp
@@ -58,6 +58,7 @@ TAGGED_UNION_EX(LValue, (), Variable, (
)
);
extern ::std::ostream& operator<<(::std::ostream& os, const LValue& x);
+extern bool operator<(const LValue& a, const LValue& b);
extern bool operator==(const LValue& a, const LValue& b);
static inline bool operator!=(const LValue& a, const LValue& b) {
return !(a == b);