From 5c63b46f8dca1d65c1906c77169555229ab07412 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 22 Sep 2018 16:25:01 +0800 Subject: All - Generate MIR for constant evaluation (has too many const_cast calls, but it's less ugly) - Also includes some MIR optimisation changes to reduce some compile times (hopefully) - Removed duplicated MIR consteval and now-unused HIR consteval --- src/mir/check.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mir/check.cpp') diff --git a/src/mir/check.cpp b/src/mir/check.cpp index cfcc52d4..b2d86590 100644 --- a/src/mir/check.cpp +++ b/src/mir/check.cpp @@ -285,6 +285,8 @@ void MIR_Validate_ValState(::MIR::TypeResolve& state, const ::MIR::Function& fcn }; ::std::vector to_visit_blocks; + // TODO: Check that all used locals are also set (anywhere at all) + auto add_to_visit = [&](unsigned int idx, ::std::vector src_path, auto vs) { for(const auto& b : to_visit_blocks) if( b.bb == idx && b.state == vs) -- cgit v1.2.3