From 583686bd2ebef786e1396ecaff4c61a984135b74 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 28 Dec 2016 14:39:59 +1100 Subject: MIR Gen - Spaces removed, misc thinking --- src/mir/from_hir.hpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/mir/from_hir.hpp') diff --git a/src/mir/from_hir.hpp b/src/mir/from_hir.hpp index aae19d97..b89e8750 100644 --- a/src/mir/from_hir.hpp +++ b/src/mir/from_hir.hpp @@ -46,15 +46,15 @@ enum class InvalidType { Descoped, }; TAGGED_UNION(VarState, Uninit, -// Currently invalid -(Invalid, InvalidType), -// Partially valid (Map of field states, Box is assumed to have one field) -(Partial, ::std::vector), -// Optionally valid (integer indicates the drop flag index) -(Optional, unsigned int), -// Fully valid -(Valid, struct {}), -) + // Currently invalid + (Invalid, InvalidType), + // Partially valid (Map of field states, Box is assumed to have one field) + (Partial, ::std::vector), + // Optionally valid (integer indicates the drop flag index) + (Optional, unsigned int), + // Fully valid + (Valid, struct {}), + ) #endif // TODO: Replace the first three states with just one (and flags for init/moved) @@ -91,6 +91,7 @@ TAGGED_UNION(ScopeType, Variables, ::std::vector arms; }), (Loop, struct { + ::std::vector exit_states; }) ); -- cgit v1.2.3