A few fixes for 64bit

This commit is contained in:
Alexey Prokhin
2011-02-23 12:49:57 +03:00
parent aa5dfdfd4d
commit e921998d75
11 changed files with 45 additions and 25 deletions

View File

@@ -491,7 +491,10 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
Logger::cout() << "expects: " << *callableTy->getParamType(j) << '\n';
}
#endif
arg = DtoBitCast(arg, callableTy->getParamType(j));
if (isaStruct(arg))
arg = DtoAggrPaint(arg, callableTy->getParamType(j));
else
arg = DtoBitCast(arg, callableTy->getParamType(j));
}
// param attrs