From 314edf07074ca2b211463ccf6b0e79ef051ffaa2 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 12 Mar 2016 10:34:29 +0800 Subject: Parse - Fix against newer compiler tests --- src/types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index b056bf94..d8e655e6 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -103,7 +103,7 @@ TypeRef::TypeRef(const TypeRef& other) #define _CLONE(VAR, code...) case TypeData::TAG_##VAR: { auto& old = other.m_data.as_##VAR(); m_data = TypeData::make_##VAR(code); } break; _COPY(None) _COPY(Any) - case TypeData::TAG_Macro: throw ::std::runtime_error("Copying an unexpanded type macro"); + case TypeData::TAG_Macro: assert( !"Copying an unexpanded type macro" ); _COPY(Unit) _COPY(Primitive) _COPY(Function) -- cgit v1.2.3