From a9248a2696e66ed9a5bae14076f360b034f32b8a Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Thu, 27 Aug 2015 18:54:41 +0000 Subject: Revert r246175 to get builder green again. llvm-svn: 246185 --- llvm/examples/Kaleidoscope/Chapter4/toy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/examples/Kaleidoscope/Chapter4/toy.cpp') diff --git a/llvm/examples/Kaleidoscope/Chapter4/toy.cpp b/llvm/examples/Kaleidoscope/Chapter4/toy.cpp index c102784b531..12777ae2c75 100644 --- a/llvm/examples/Kaleidoscope/Chapter4/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter4/toy.cpp @@ -632,13 +632,13 @@ static void MainLoop() { /// putchard - putchar that takes a double and returns 0. extern "C" double putchard(double X) { - fputc((char)X, stderr); + putchar((char)X); return 0; } /// printd - printf that takes a double prints it as "%f\n", returning 0. extern "C" double printd(double X) { - fprintf(stderr, "%f\n", X); + printf("%f\n", X); return 0; } -- cgit v1.2.3