diff --git a/llvm_zluda/src/lib.cpp b/llvm_zluda/src/lib.cpp index 072f773..c8ac2d7 100644 --- a/llvm_zluda/src/lib.cpp +++ b/llvm_zluda/src/lib.cpp @@ -1,7 +1,10 @@ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" #include #include #include #include +#pragma GCC diagnostic pop using namespace llvm; @@ -189,7 +192,8 @@ void LLVMZludaBuildFence(LLVMBuilderRef B, LLVMAtomicOrdering Ordering, auto builder = llvm::unwrap(B); LLVMContext &context = builder->getContext(); builder->CreateFence(mapFromLLVMOrdering(Ordering), - context.getOrInsertSyncScopeID(scope)); + context.getOrInsertSyncScopeID(scope), + Name); } LLVM_C_EXTERN_C_END \ No newline at end of file