aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-27 18:10:19 +0000
committerDavid Robillard <d@drobilla.net>2012-12-27 18:10:19 +0000
commit7603b847aab2a7ef8a2d3342cb9326607e218bb9 (patch)
tree22be0f0fd8549ecf2924f736d2f8e77724045f96
parent3f63c53b6d1188f1b6f0cd94fbb67ce48965b14d (diff)
downloadresp-7603b847aab2a7ef8a2d3342cb9326607e218bb9.tar.gz
resp-7603b847aab2a7ef8a2d3342cb9326607e218bb9.tar.bz2
resp-7603b847aab2a7ef8a2d3342cb9326607e218bb9.zip
Fix depoly crash on forward declarations.
git-svn-id: http://svn.drobilla.net/resp/trunk@450 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-rw-r--r--src/depoly.cpp3
1 files changed, 3 insertions, 0 deletions
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());