From 526326f5c08a09df02bf5c7234220ce008cd956a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 8 Aug 2016 00:05:28 +0800 Subject: main - Enable closure expansion (currently crashes) --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 2d4e4a4c..3aeee63d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,6 +17,7 @@ #include "resolve/main_bindings.hpp" #include "hir_conv/main_bindings.hpp" #include "hir_typeck/main_bindings.hpp" +#include "hir_expand/main_bindings.hpp" #include "expand/cfg.hpp" @@ -179,6 +180,9 @@ int main(int argc, char *argv[]) CompilePhaseV("Typecheck Expressions", [&]() { Typecheck_Expressions(*hir_crate); }); + CompilePhaseV("Expand HIR Closures", [&]() { + HIR_Expand_Closures(*hir_crate); + }); CompilePhaseV("Typecheck Expressions (validate)", [&]() { Typecheck_Expressions_Validate(*hir_crate); }); -- cgit v1.2.3