From c3601526574d9f04779cea3a84c8b423e6b3fb26 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 8 Dec 2010 20:50:17 +0000 Subject: Eliminate some backend specific code in LLVMEngine::compileMatch (towards moving it to compile.cpp). git-svn-id: http://svn.drobilla.net/resp/resp@317 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compile.cpp') diff --git a/src/compile.cpp b/src/compile.cpp index 4d8e98d..554fab6 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -130,7 +130,7 @@ compile_dot(CEnv& cenv, const ATuple* dot) throw() const ALiteral* index = (ALiteral*)(*++i); assert(index->tag() == T_INT32); CVal tupVal = resp_compile(cenv, tup); - return cenv.engine()->compileDot(cenv, tupVal, index->val); + return cenv.engine()->compileDot(cenv, tupVal, index->val + 1); // + 1 to skip RTTI } static CVal -- cgit v1.2.1