From 24e218454648da6a6256a9e6759c04057f742e83 Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Tue, 2 Nov 2010 14:22:36 +0300 Subject: [PATCH] Removed hack from DtoAAIn --- gen/aa.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gen/aa.cpp b/gen/aa.cpp index 7093f33e..0bcd06ed 100644 --- a/gen/aa.cpp +++ b/gen/aa.cpp @@ -129,12 +129,8 @@ DValue* DtoAAIn(Loc& loc, Type* type, DValue* aa, DValue* key) keyti = DtoBitCast(keyti, funcTy->getParamType(1)); // pkey param -#if DMDV1 LLValue* pkey = makeLValue(loc, key); - pkey = DtoBitCast(pkey, funcTy->getParamType(2)); -#else - LLValue* pkey = getNullValue(getVoidPtrType()); -#endif + pkey = DtoBitCast(pkey, getVoidPtrType()); // call runtime LLValue* ret = gIR->CreateCallOrInvoke3(func, aaval, keyti, pkey, "aa.in").getInstruction();