aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/IPO/MergeFunctions.cpp
diff options
context:
space:
mode:
authorArnold Schwaighofer <aschwaighofer@apple.com>2015-07-17 18:59:08 +0000
committerArnold Schwaighofer <aschwaighofer@apple.com>2015-07-17 18:59:08 +0000
commit690cd87dcdc8365701eec978aa710c943b4affa5 (patch)
tree0268a6c61509d2fccb9cf15288a6371744251c8e /llvm/lib/Transforms/IPO/MergeFunctions.cpp
parent3116f6eb8675a9b95e6577dc9522fbb3b3651cd7 (diff)
downloadllvm-690cd87dcdc8365701eec978aa710c943b4affa5.zip
llvm-690cd87dcdc8365701eec978aa710c943b4affa5.tar.gz
llvm-690cd87dcdc8365701eec978aa710c943b4affa5.tar.bz2
MergeFuncs: Transfer the function parameter attributes to the call site
rdar://21516488 llvm-svn: 242558
Diffstat (limited to 'llvm/lib/Transforms/IPO/MergeFunctions.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/MergeFunctions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp
index 109cac7..a0654bd 100644
--- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp
+++ b/llvm/lib/Transforms/IPO/MergeFunctions.cpp
@@ -1361,6 +1361,7 @@ void MergeFunctions::writeThunk(Function *F, Function *G) {
CallInst *CI = Builder.CreateCall(F, Args);
CI->setTailCall();
CI->setCallingConv(F->getCallingConv());
+ CI->setAttributes(F->getAttributes());
if (NewG->getReturnType()->isVoidTy()) {
Builder.CreateRetVoid();
} else {