projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Clang-tidy modernize-use-nullptr warnings in examples and include directories...
[oota-llvm.git]
/
examples
/
Kaleidoscope
/
Chapter2
/
toy.cpp
diff --git
a/examples/Kaleidoscope/Chapter2/toy.cpp
b/examples/Kaleidoscope/Chapter2/toy.cpp
index 14cba32f5f91308584baa2a236efda4af9b67a27..bcba554b246ec644a052d319dc6597f83e6b5934 100644
(file)
--- 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;
}