diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2015-07-17 18:59:08 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2015-07-17 18:59:08 +0000 |
commit | 690cd87dcdc8365701eec978aa710c943b4affa5 (patch) | |
tree | 0268a6c61509d2fccb9cf15288a6371744251c8e /llvm/lib/Transforms/IPO/MergeFunctions.cpp | |
parent | 3116f6eb8675a9b95e6577dc9522fbb3b3651cd7 (diff) | |
download | llvm-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.cpp | 1 |
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 { |