changeset 21:fc4a6333556f

change error message when tail call elimination is failed.
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Mon, 14 Oct 2013 19:09:00 +0900
parents a5b470e0d09d
children d0228214ed38
files lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);