From 0b9fd0014c8f32ecf299dae2ad1811dfb484af46 Mon Sep 17 00:00:00 2001 From: "John Hodge (bugs)" Date: Sun, 4 Jun 2017 21:23:03 +0800 Subject: All - Compile and run fixes in MSVC --- src/hir/type.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/hir/type.hpp') diff --git a/src/hir/type.hpp b/src/hir/type.hpp index b5b10c4e..a832e8e9 100644 --- a/src/hir/type.hpp +++ b/src/hir/type.hpp @@ -123,7 +123,7 @@ public: ) ); - TAGGED_UNION(Data, Infer, + TAGGED_UNION(Data, Diverge, (Infer, struct { unsigned int index; InferClass ty_class; @@ -177,7 +177,9 @@ public: Data m_data; - TypeRef() {} + TypeRef(): + m_data(Data::make_Infer({ ~0u, InferClass::None })) + {} TypeRef(TypeRef&& ) = default; TypeRef(const TypeRef& ) = delete; TypeRef& operator=(TypeRef&& ) = default; -- cgit v1.2.3