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();