Mercurial > projects > ldc
diff gen/tollvm.cpp @ 317:1a2777460bd5 trunk
[svn r338] Intrinsic calls can never be invokes.
author | ChristianK |
---|---|
date | Fri, 04 Jul 2008 08:55:58 +0200 |
parents | a9697749e898 |
children | 0d52412d5b1a |
line wrap: on
line diff
--- a/gen/tollvm.cpp Fri Jul 04 08:51:49 2008 +0200 +++ b/gen/tollvm.cpp Fri Jul 04 08:55:58 2008 +0200 @@ -410,7 +410,7 @@ else fn = GET_INTRINSIC_DECL(memset_i32); - gIR->CreateCallOrInvoke4(fn, dst, DtoConstUbyte(0), nbytes, DtoConstUint(0)); + gIR->ir->CreateCall4(fn, dst, DtoConstUbyte(0), nbytes, DtoConstUint(0), ""); } ////////////////////////////////////////////////////////////////////////////////////////// @@ -426,7 +426,7 @@ else fn = GET_INTRINSIC_DECL(memcpy_i32); - gIR->CreateCallOrInvoke4(fn, dst, src, nbytes, DtoConstUint(0)); + gIR->ir->CreateCall4(fn, dst, src, nbytes, DtoConstUint(0), ""); } ////////////////////////////////////////////////////////////////////////////////////////// @@ -459,7 +459,7 @@ llargs.push_back(DtoConstBool(ss)); llargs.push_back(DtoConstBool(device)); - gIR->CreateCallOrInvoke(fn, llargs.begin(), llargs.end()); + llvm::CallInst::Create(fn, llargs.begin(), llargs.end(), "", gIR->scopebb()); } //////////////////////////////////////////////////////////////////////////////////////////