[llvm-commits] [llvm] r73692 - /llvm/trunk/include/llvm/Support/IRBuilder.h
Anton Korobeynikov
asl at math.spbu.ru
Thu Jun 18 01:13:57 PDT 2009
Author: asl
Date: Thu Jun 18 03:13:56 2009
New Revision: 73692
URL: http://llvm.org/viewvc/llvm-project?rev=73692&view=rev
Log:
Propagate calling conv for invokes too
Modified:
llvm/trunk/include/llvm/Support/IRBuilder.h
Modified: llvm/trunk/include/llvm/Support/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/IRBuilder.h?rev=73692&r1=73691&r2=73692&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/Support/IRBuilder.h Thu Jun 18 03:13:56 2009
@@ -154,8 +154,10 @@
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() {
More information about the llvm-commits
mailing list