diff options
author | Lang Hames <lhames@gmail.com> | 2015-08-27 18:54:41 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-08-27 18:54:41 +0000 |
commit | a9248a2696e66ed9a5bae14076f360b034f32b8a (patch) | |
tree | 24b66b4ac5573e32ead47389e29c031eef1e7417 /llvm/examples/Kaleidoscope/Chapter4/toy.cpp | |
parent | 533fde9f4d6544116d04462fff2c64ab36348f0a (diff) | |
download | bcm5719-llvm-a9248a2696e66ed9a5bae14076f360b034f32b8a.tar.gz bcm5719-llvm-a9248a2696e66ed9a5bae14076f360b034f32b8a.zip |
Revert r246175 to get builder green again.
llvm-svn: 246185
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter4/toy.cpp')
-rw-r--r-- | llvm/examples/Kaleidoscope/Chapter4/toy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |