From cc9deb48019f7e5faf401070aa417b0ead871fd6 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Tue, 29 Sep 2015 18:02:48 +0000 Subject: 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 --- llvm/examples/Kaleidoscope/Chapter2/toy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/examples/Kaleidoscope/Chapter2/toy.cpp') 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; } -- cgit v1.2.3