From bc03a277689380c5c667a192b5e7d2e3799106a7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 25 Dec 2010 09:49:29 +0000 Subject: Use type of primitive rather than type of first argument to determine type of operation. git-svn-id: http://svn.drobilla.net/resp/resp@349 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/llvm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/llvm.cpp b/src/llvm.cpp index 69d421a..11cb846 100644 --- a/src/llvm.cpp +++ b/src/llvm.cpp @@ -378,10 +378,10 @@ LLVMEngine::compileIsA(CEnv& cenv, CVal rtti, const ASymbol* tag) CVal LLVMEngine::compilePrimitive(CEnv& cenv, const ATuple* prim) { - ATuple::const_iterator i = prim->begin(); + ATuple::const_iterator i = prim->iter_at(1); LLVMEngine* engine = reinterpret_cast(cenv.engine()); - bool isFloat = cenv.type(*++i)->str() == "Float"; + bool isFloat = cenv.type(prim)->str() == "Float"; Value* a = llVal(resp_compile(cenv, *i++)); Value* b = llVal(resp_compile(cenv, *i++)); const string n = prim->head()->to_symbol()->str(); -- cgit v1.2.1