From 7835b04c2ae2f564abf90458e9d57d038a0387b8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Mar 2009 01:50:17 +0000 Subject: Tidy. git-svn-id: http://svn.drobilla.net/resp/tuplr@91 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- typing.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'typing.cpp') diff --git a/typing.cpp b/typing.cpp index 488c430..d6f7acc 100644 --- a/typing.cpp +++ b/typing.cpp @@ -36,11 +36,9 @@ ASymbol::constrain(TEnv& tenv, Constraints& c) const if (!addr) throw Error((format("undefined symbol `%1%'") % cppstr).str(), loc); AType* t = tenv.deref(addr); - if (!t) - throw Error((format("unresolved symbol `%1%'") % cppstr).str(), loc); - AType* var = tenv.deref(addr); - var->addr = addr; - c.push_back(Constraint(tenv.var(this), var, loc)); + assert(t); + t->addr = addr; + c.push_back(Constraint(tenv.var(this), t, loc)); } void -- cgit v1.2.1