# HG changeset patch # User Kaito Tokumori # Date 1381745340 -32400 # Node ID fc4a6333556f114e5bc0f9beaf115fb77c593230 # Parent a5b470e0d09d3610bd73a477b7a7077c0450fc72 change error message when tail call elimination is failed. diff -r a5b470e0d09d -r fc4a6333556f lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Sun Oct 06 18:16:15 2013 +0900 +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Mon Oct 14 19:09:00 2013 +0900 @@ -5299,8 +5299,7 @@ #ifndef noCbC // if code segment's tail call flag was changed false , we report it on error. if (CLI.RetTy->is__CodeTy() && CS.getCaller()->getReturnType()->is__CodeTy() && !isTailCall) - DAG.getContext()->emitError(CS.getInstruction(),CS.getCalledFunction()->getName() + - " is code segment which called by code segment but its tail call flag was changed false!"); + DAG.getContext()->emitError(CS.getInstruction(),CS.getCalledFunction()->getName() + " : Tail call elimination was failed!"); #endif if (Result.first.getNode()) { setValue(CS.getInstruction(), Result.first);