From 832b9e6a7a34da0c192be3e6ce70cc62fed1e067 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 18 Jun 2009 08:13:56 +0000 Subject: [PATCH] Propagate calling conv for invokes too llvm-svn: 73692 --- llvm/include/llvm/Support/IRBuilder.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/IRBuilder.h b/llvm/include/llvm/Support/IRBuilder.h index 316a8ad3371a..39aaebbedd8c 100644 --- a/llvm/include/llvm/Support/IRBuilder.h +++ b/llvm/include/llvm/Support/IRBuilder.h @@ -154,8 +154,10 @@ public: InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest, BasicBlock *UnwindDest, InputIterator ArgBegin, InputIterator ArgEnd, const char *Name = "") { - return Insert(InvokeInst::Create(Callee, NormalDest, UnwindDest, - ArgBegin, ArgEnd), Name); + return Insert(TransferAttributes(InvokeInst::Create(Callee, + NormalDest, UnwindDest, + ArgBegin, ArgEnd), + Callee), Name); } UnwindInst *CreateUnwind() {