From 0e43caf1cc4bcd3c8cf4d8349b52b63c11aad7f9 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Fri, 4 Jul 2008 08:55:58 +0200 Subject: [PATCH] [svn r338] Intrinsic calls can never be invokes. --- gen/tollvm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gen/tollvm.cpp b/gen/tollvm.cpp index ef809c11..0f00b2e5 100644 --- a/gen/tollvm.cpp +++ b/gen/tollvm.cpp @@ -410,7 +410,7 @@ void DtoMemSetZero(LLValue* dst, LLValue* nbytes) 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 @@ void DtoMemCpy(LLValue* dst, LLValue* src, LLValue* nbytes) 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 @@ void DtoMemoryBarrier(bool ll, bool ls, bool sl, bool ss, bool device) 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()); } //////////////////////////////////////////////////////////////////////////////////////////