Mercurial > hg > CbC > CbC_llvm
diff lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @ 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 | 5abb684876c4 |
children | ecf2394747e1 |
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);