Mercurial > projects > ldc
diff gen/functions.cpp @ 933:d3a6f1a96731
Replace assertion with errormessage for unsupported calling conventions. like Pascal. See dstress/run/e/extern_10_A.d
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 04 Feb 2009 00:04:09 +0100 |
parents | 7985bb036db4 |
children | b56f3571c450 |
line wrap: on
line diff
--- a/gen/functions.cpp Tue Feb 03 23:48:47 2009 +0100 +++ b/gen/functions.cpp Wed Feb 04 00:04:09 2009 +0100 @@ -528,7 +528,7 @@ // calling convention if (!vafunc && fdecl->llvmInternal != LLVMintrinsic) - func->setCallingConv(DtoCallingConv(f->linkage)); + func->setCallingConv(DtoCallingConv(fdecl->loc, f->linkage)); else // fall back to C, it should be the right thing to do func->setCallingConv(llvm::CallingConv::C);