aboutsummaryrefslogtreecommitdiffstats
path: root/src/compile.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-08 20:50:17 +0000
committerDavid Robillard <d@drobilla.net>2010-12-08 20:50:17 +0000
commitc3601526574d9f04779cea3a84c8b423e6b3fb26 (patch)
tree358a8e40b2b7cf6d8a85a41dbf90300511112e3a /src/compile.cpp
parent41c9834662fdccfc8ae8abde2d279a70ff17c597 (diff)
downloadresp-c3601526574d9f04779cea3a84c8b423e6b3fb26.tar.gz
resp-c3601526574d9f04779cea3a84c8b423e6b3fb26.tar.bz2
resp-c3601526574d9f04779cea3a84c8b423e6b3fb26.zip
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
Diffstat (limited to 'src/compile.cpp')
-rw-r--r--src/compile.cpp2
1 files changed, 1 insertions, 1 deletions
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<int32_t>* index = (ALiteral<int32_t>*)(*++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