summaryrefslogtreecommitdiff
path: root/examples/Kaleidoscope/Chapter2/toy.cpp
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
commitd16725c31fbb40fcbf0cdf68b2b417ba445c5140 (patch)
treeaa2106c498a11e0fc4d83ec2c59d7e1b70c7e56a /examples/Kaleidoscope/Chapter2/toy.cpp
parent23662fba704e684f24d3114bb399c80d5c0afbd9 (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Kaleidoscope/Chapter2/toy.cpp')
-rw-r--r--examples/Kaleidoscope/Chapter2/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/Chapter2/toy.cpp b/examples/Kaleidoscope/Chapter2/toy.cpp
index 14cba32f5f9..bcba554b246 100644
--- a/examples/Kaleidoscope/Chapter2/toy.cpp
+++ b/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;
}