diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-21 20:47:17 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-21 20:47:17 +0800 |
commit | 33bf75d5b26248950757f3b580337d6db271b8b1 (patch) | |
tree | cb654bc893f6f98d3f9ca99b1eebbf32fb5f5583 /src/mir/from_hir.hpp | |
parent | a733ee610f0935867bfee93c03e20b483d249aa4 (diff) | |
download | mrust-33bf75d5b26248950757f3b580337d6db271b8b1.tar.gz |
MIR Gen - Fix use-after-move when partially moved in one arm and optionally moved in another
Diffstat (limited to 'src/mir/from_hir.hpp')
-rw-r--r-- | src/mir/from_hir.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mir/from_hir.hpp b/src/mir/from_hir.hpp index c4be91a2..79e71196 100644 --- a/src/mir/from_hir.hpp +++ b/src/mir/from_hir.hpp @@ -79,6 +79,7 @@ extern ::std::ostream& operator<<(::std::ostream& os, const VarState& x); struct SplitArm { bool has_early_terminated = false; bool always_early_terminated = false; // Populated on completion + //BasicBlockId source_block; ::std::map<unsigned int, VarState> states; ::std::map<unsigned int, VarState> arg_states; }; |