@@ -288,7 +288,7 @@ llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl)
288288
289289 LLFunctionType* functype = DtoFunctionType (fdecl->type , getIrFunc (fdecl, true )->irFty , dthis, dnest,
290290 fdecl->isMain (), fdecl->isCtorDeclaration (),
291- fdecl-> llvmInternal == LLVMintrinsic );
291+ DtoIsIntrinsic ( fdecl) );
292292
293293 return functype;
294294}
@@ -456,7 +456,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
456456 // printf("declare function: %s\n", fdecl->toPrettyChars());
457457
458458 // intrinsic sanity check
459- if (fdecl-> llvmInternal == LLVMintrinsic && fdecl->fbody ) {
459+ if (DtoIsIntrinsic ( fdecl) && fdecl->fbody ) {
460460 error (fdecl->loc , " intrinsics cannot have function bodies" );
461461 fatal ();
462462 }
@@ -474,7 +474,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
474474
475475 // calling convention
476476 LINK link = f->linkage ;
477- if (vafunc || fdecl-> llvmInternal == LLVMintrinsic
477+ if (vafunc || DtoIsIntrinsic ( fdecl)
478478 // DMD treats _Dmain as having C calling convention and this has been
479479 // hardcoded into druntime, even if the frontend type has D linkage.
480480 // See Bugzilla issue 9028.
@@ -616,7 +616,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
616616static LinkageWithCOMDAT lowerFuncLinkage (FuncDeclaration* fdecl)
617617{
618618 // Intrinsics are always external.
619- if (fdecl-> llvmInternal == LLVMintrinsic )
619+ if (DtoIsIntrinsic ( fdecl) )
620620 return LinkageWithCOMDAT (llvm::GlobalValue::ExternalLinkage, false );
621621
622622 // Generated array op functions behave like templates in that they might be
0 commit comments