diff options
Diffstat (limited to 'examples/ParallelJIT/ParallelJIT.cpp')
-rw-r--r-- | examples/ParallelJIT/ParallelJIT.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/ParallelJIT/ParallelJIT.cpp b/examples/ParallelJIT/ParallelJIT.cpp index 6fb8bd61982..f1932d2471c 100644 --- a/examples/ParallelJIT/ParallelJIT.cpp +++ b/examples/ParallelJIT/ParallelJIT.cpp @@ -54,8 +54,7 @@ static Function* createAdd1(Module *M) { Function *Add1F = cast<Function>(M->getOrInsertFunction("add1", Type::getInt32Ty(M->getContext()), - Type::getInt32Ty(M->getContext()), - nullptr)); + Type::getInt32Ty(M->getContext()))); // Add a basic block to the function. As before, it automatically inserts // because of the last argument. @@ -85,8 +84,7 @@ static Function *CreateFibFunction(Module *M) { Function *FibF = cast<Function>(M->getOrInsertFunction("fib", Type::getInt32Ty(M->getContext()), - Type::getInt32Ty(M->getContext()), - nullptr)); + Type::getInt32Ty(M->getContext()))); // Add a basic block to the function. BasicBlock *BB = BasicBlock::Create(M->getContext(), "EntryBlock", FibF); |