diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-05-06 20:08:20 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-05-06 20:08:20 +0000 |
commit | 39497497016cbe38c3fb4ecfad03506a4ee015dd (patch) | |
tree | 901127e680ff62faef59b31b47ddcfd563bd0830 /lib/IR | |
parent | e3e870facee9f1fcf5b19f15a3deb78b582fb37e (diff) | |
download | llvm-39497497016cbe38c3fb4ecfad03506a4ee015dd.tar.gz llvm-39497497016cbe38c3fb4ecfad03506a4ee015dd.tar.bz2 llvm-39497497016cbe38c3fb4ecfad03506a4ee015dd.tar.xz |
Copy the full TailCallKind in CallInst::clone_impl
Split from the musttail inliner change. This will be covered by an opt
test when the inliner change lands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Instructions.cpp b/lib/IR/Instructions.cpp index 8aebb8c7c2..13c51b817c 100644 --- a/lib/IR/Instructions.cpp +++ b/lib/IR/Instructions.cpp @@ -324,7 +324,7 @@ CallInst::CallInst(const CallInst &CI) OperandTraits<CallInst>::op_end(this) - CI.getNumOperands(), CI.getNumOperands()) { setAttributes(CI.getAttributes()); - setTailCall(CI.isTailCall()); + setTailCallKind(CI.getTailCallKind()); setCallingConv(CI.getCallingConv()); std::copy(CI.op_begin(), CI.op_end(), op_begin()); |