From 118e1bf86209a5c7dd19c3a764db14081d111d02 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Tue, 6 May 2014 20:08:20 +0000 Subject: 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. llvm-svn: 208126 --- llvm/lib/IR/Instructions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/Instructions.cpp') diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 8aebb8c7c2c..13c51b817c0 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/lib/IR/Instructions.cpp @@ -324,7 +324,7 @@ CallInst::CallInst(const CallInst &CI) OperandTraits::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()); -- cgit v1.2.3