diff options
author | Hans Wennborg <hans@hanshq.net> | 2015-09-29 18:02:48 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2015-09-29 18:02:48 +0000 |
commit | cc9deb48019f7e5faf401070aa417b0ead871fd6 (patch) | |
tree | 06e64c09dde0052a10e50542c3840643e723a913 /llvm/examples/HowToUseJIT | |
parent | 410a25aa7a093ee9f6de4d12e1f8aaa1cf9c0e81 (diff) | |
download | bcm5719-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/HowToUseJIT')
-rw-r--r-- | llvm/examples/HowToUseJIT/HowToUseJIT.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/examples/HowToUseJIT/HowToUseJIT.cpp b/llvm/examples/HowToUseJIT/HowToUseJIT.cpp index 91ea17dd22b..e5fca3fe98d 100644 --- a/llvm/examples/HowToUseJIT/HowToUseJIT.cpp +++ b/llvm/examples/HowToUseJIT/HowToUseJIT.cpp @@ -65,7 +65,7 @@ int main() { Function *Add1F = cast<Function>(M->getOrInsertFunction("add1", Type::getInt32Ty(Context), Type::getInt32Ty(Context), - (Type *)0)); + nullptr)); // Add a basic block to the function. As before, it automatically inserts // because of the last argument. @@ -91,12 +91,11 @@ int main() { // Now, function add1 is ready. - // Now we're going to create function `foo', which returns an int and takes no // arguments. Function *FooF = cast<Function>(M->getOrInsertFunction("foo", Type::getInt32Ty(Context), - (Type *)0)); + nullptr)); // Add a basic block to the FooF function. BB = BasicBlock::Create(Context, "EntryBlock", FooF); |