summaryrefslogtreecommitdiff
path: root/src/mir/mir.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-29 21:40:30 +0800
committerJohn Hodge <tpg@mutabah.net>2016-12-29 21:40:30 +0800
commit76072adda3183db0a56e846fb13f29fe7fc76d43 (patch)
treef0c6e5bf75aab87d350c78d9d213c44524598847 /src/mir/mir.hpp
parentc58ba9d7d7dbb6657f0c5a110d5c55dbed5e5eeb (diff)
downloadmrust-76072adda3183db0a56e846fb13f29fe7fc76d43.tar.gz
MIR Opt - Partial dead temporary eliminaton
Diffstat (limited to 'src/mir/mir.hpp')
-rw-r--r--src/mir/mir.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mir/mir.hpp b/src/mir/mir.hpp
index 6bd371b5..93bd7244 100644
--- a/src/mir/mir.hpp
+++ b/src/mir/mir.hpp
@@ -58,6 +58,10 @@ TAGGED_UNION_EX(LValue, (), Variable, (
)
);
extern ::std::ostream& operator<<(::std::ostream& os, const LValue& x);
+extern bool operator==(const LValue& a, const LValue& b);
+static inline bool operator!=(const LValue& a, const LValue& b) {
+ return !(a == b);
+}
enum class eBinOp
{