diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 2cd5644bb15..be124b0501e 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -1542,6 +1542,7 @@ void CWriter::visitCallInst(CallInst &I) { // match exactly. // bool WroteCallee = false; + if (I.isTailCall()) Out << " /*tail*/ "; if (ConstantExpr *CE = dyn_cast(Callee)) if (CE->getOpcode() == Instruction::Cast) if (Function *RF = dyn_cast(CE->getOperand(0))) { diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 2cd5644bb15..be124b0501e 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -1542,6 +1542,7 @@ void CWriter::visitCallInst(CallInst &I) { // match exactly. // bool WroteCallee = false; + if (I.isTailCall()) Out << " /*tail*/ "; if (ConstantExpr *CE = dyn_cast(Callee)) if (CE->getOpcode() == Instruction::Cast) if (Function *RF = dyn_cast(CE->getOperand(0))) {