Prepare generic x86 TargetABI for proper MSVC support

Based on Rainer's work in
3e36652c2c
This commit is contained in:
Martin 2015-12-06 18:47:16 +01:00
parent 5fce371c91
commit e7f26a94b0
7 changed files with 21 additions and 9 deletions

View file

@ -777,8 +777,8 @@ DValue *DtoCallFunction(Loc &loc, Type *resulttype, DValue *fnval,
LLFunctionType *const callableTy =
DtoExtractFunctionType(callable->getType());
assert(callableTy);
const llvm::CallingConv::ID callconv =
gABI->callingConv(callableTy, tf->linkage);
const auto callconv = gABI->callingConv(callableTy, tf->linkage,
dfnval ? dfnval->func : nullptr);
// IF_LOG Logger::cout() << "callable: " << *callable << '\n';