mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-31 20:13:19 +01:00
Different fixes for d2
This commit is contained in:
@@ -129,8 +129,12 @@ 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
|
||||
|
||||
// call runtime
|
||||
LLValue* ret = gIR->CreateCallOrInvoke3(func, aaval, keyti, pkey, "aa.in").getInstruction();
|
||||
|
||||
Reference in New Issue
Block a user