From 7603b847aab2a7ef8a2d3342cb9326607e218bb9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 27 Dec 2012 18:10:19 +0000 Subject: Fix depoly crash on forward declarations. git-svn-id: http://svn.drobilla.net/resp/trunk@450 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/depoly.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/depoly.cpp b/src/depoly.cpp index cb698df..fa71ba0 100644 --- a/src/depoly.cpp +++ b/src/depoly.cpp @@ -47,6 +47,9 @@ is_concrete(const AST* type) static const AST* depoly_def_type(CEnv& cenv, Code& code, const ATuple* def) throw() { + if (!def->rrst()) { + return def; // Forward declaration + } const ASymbol* name = def->frst()->to_symbol(); if (name) { cenv.tenv.def(name, def->frrst()); -- cgit v1.2.1