summaryrefslogtreecommitdiff
path: root/src/mir/mir.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-01-20 21:50:28 +0800
committerJohn Hodge <tpg@mutabah.net>2017-01-20 21:50:28 +0800
commit80fba399bb4a6f652a1a88e61522b73f96f1114b (patch)
treefdd55506524ac1db920d25cabec915e94a0d1df3 /src/mir/mir.hpp
parent71d55f1e97d80b3f42610f7a8a22e57cafb46561 (diff)
downloadmrust-80fba399bb4a6f652a1a88e61522b73f96f1114b.tar.gz
MIR - Merging of drop flags
Diffstat (limited to 'src/mir/mir.hpp')
-rw-r--r--src/mir/mir.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mir/mir.hpp b/src/mir/mir.hpp
index 565d159b..d897ad13 100644
--- a/src/mir/mir.hpp
+++ b/src/mir/mir.hpp
@@ -224,7 +224,8 @@ TAGGED_UNION(Statement, Assign,
// Update the state of a drop flag
(SetDropFlag, struct {
unsigned int idx;
- bool new_val;
+ bool new_val; // If `other` is populated, this indicates that the other value should be negated
+ unsigned int other = ~0u;
}),
// Drop a value
(Drop, struct {