summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/Chapter2
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2015-09-29 18:02:48 +0000
committerHans Wennborg <hans@hanshq.net>2015-09-29 18:02:48 +0000
commitcc9deb48019f7e5faf401070aa417b0ead871fd6 (patch)
tree06e64c09dde0052a10e50542c3840643e723a913 /llvm/examples/Kaleidoscope/Chapter2
parent410a25aa7a093ee9f6de4d12e1f8aaa1cf9c0e81 (diff)
downloadbcm5719-llvm-cc9deb48019f7e5faf401070aa417b0ead871fd6.tar.gz
bcm5719-llvm-cc9deb48019f7e5faf401070aa417b0ead871fd6.zip
Fix Clang-tidy modernize-use-nullptr warnings in examples and include directories; other minor cleanups.
Patch by Eugene Zelenko! Differential Revision: http://reviews.llvm.org/D13172 llvm-svn: 248811
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter2')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter2/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter2/toy.cpp b/llvm/examples/Kaleidoscope/Chapter2/toy.cpp
index 14cba32f5f9..bcba554b246 100644
--- a/llvm/examples/Kaleidoscope/Chapter2/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter2/toy.cpp
@@ -53,7 +53,7 @@ static int gettok() {
LastChar = getchar();
} while (isdigit(LastChar) || LastChar == '.');
- NumVal = strtod(NumStr.c_str(), 0);
+ NumVal = strtod(NumStr.c_str(), nullptr);
return tok_number;
}
OpenPOWER on IntegriCloud