summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-06-18 08:13:56 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-06-18 08:13:56 +0000
commit832b9e6a7a34da0c192be3e6ce70cc62fed1e067 (patch)
tree2435f91a1e1e83f5bf5eb3767a80f25d69177632
parentb21175ccbe618c9bac795c13a4bbdba27ed7631a (diff)
downloadbcm5719-llvm-832b9e6a7a34da0c192be3e6ce70cc62fed1e067.tar.gz
bcm5719-llvm-832b9e6a7a34da0c192be3e6ce70cc62fed1e067.zip
Propagate calling conv for invokes too
llvm-svn: 73692
-rw-r--r--llvm/include/llvm/Support/IRBuilder.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/IRBuilder.h b/llvm/include/llvm/Support/IRBuilder.h
index 316a8ad3371..39aaebbedd8 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() {
OpenPOWER on IntegriCloud