summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/examples/ParallelJIT/ParallelJIT.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-10-04 20:27:34 +0000
committerpatrick <patrick@openbsd.org>2017-10-04 20:27:34 +0000
commit31eb748944903b7f4f38afda9851951ca9dfc1ae (patch)
tree9b95b6ea45d0874d75eb05b90c0840e191416439 /gnu/llvm/examples/ParallelJIT/ParallelJIT.cpp
parentDon't try to handle IPv4-compatible IPv6 addresses (diff)
downloadwireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.tar.xz
wireguard-openbsd-31eb748944903b7f4f38afda9851951ca9dfc1ae.zip
Import LLVM 5.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/examples/ParallelJIT/ParallelJIT.cpp')
-rw-r--r--gnu/llvm/examples/ParallelJIT/ParallelJIT.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/llvm/examples/ParallelJIT/ParallelJIT.cpp b/gnu/llvm/examples/ParallelJIT/ParallelJIT.cpp
index 6fb8bd61982..ff44375e392 100644
--- a/gnu/llvm/examples/ParallelJIT/ParallelJIT.cpp
+++ b/gnu/llvm/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);
@@ -147,6 +145,7 @@ public:
waitFor = 0;
int result = pthread_cond_init( &condition, nullptr );
+ (void)result;
assert( result == 0 );
result = pthread_mutex_init( &mutex, nullptr );