And still more changes for LLVM 3.2

There were additional changes to the Attributes class.
This commit is contained in:
kai
2012-10-15 18:31:18 +02:00
parent 0ebceb4e16
commit 657fc42221
6 changed files with 41 additions and 37 deletions

View File

@@ -723,7 +723,11 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
{
LLFunction* llfunc = llvm::dyn_cast<LLFunction>(dfnval->val);
if (llfunc && llfunc->isIntrinsic()) // override intrinsic attrs
#if LDC_LLVM_VER >= 302
attrlist = llvm::Intrinsic::getAttributes(gIR->context(), static_cast<llvm::Intrinsic::ID>(llfunc->getIntrinsicID()));
#else
attrlist = llvm::Intrinsic::getAttributes(static_cast<llvm::Intrinsic::ID>(llfunc->getIntrinsicID()));
#endif
else
call.setCallingConv(callconv);
}