File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7230,7 +7230,7 @@ static Function *emitTargetTaskProxyFunction(
7230
7230
7231
7231
Type *ThreadIDTy = Type::getInt32Ty (Ctx);
7232
7232
Type *TaskPtrTy = OMPBuilder.TaskPtr ;
7233
- Type *TaskTy = OMPBuilder.Task ;
7233
+ [[maybe_unused]] Type *TaskTy = OMPBuilder.Task ;
7234
7234
7235
7235
auto ProxyFnTy =
7236
7236
FunctionType::get (Builder.getVoidTy (), {ThreadIDTy, TaskPtrTy},
@@ -7664,7 +7664,8 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::emitTargetTask(
7664
7664
Builder.CreateStructGEP (TaskWithPrivatesTy, TaskData, 1 );
7665
7665
for (unsigned int i = 0 ; i < OffloadingArraysToPrivatize.size (); ++i) {
7666
7666
Value *PtrToPrivatize = OffloadingArraysToPrivatize[i];
7667
- Type *ArrayType = getOffloadingArrayType (PtrToPrivatize);
7667
+ [[maybe_unused]] Type *ArrayType =
7668
+ getOffloadingArrayType (PtrToPrivatize);
7668
7669
assert (ArrayType && " ArrayType cannot be nullptr" );
7669
7670
7670
7671
Type *ElementType = PrivatesTy->getElementType (i);
You can’t perform that action at this time.
0 commit comments