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(
72307230
72317231 Type *ThreadIDTy = Type::getInt32Ty (Ctx);
72327232 Type *TaskPtrTy = OMPBuilder.TaskPtr ;
7233- Type *TaskTy = OMPBuilder.Task ;
7233+ [[maybe_unused]] Type *TaskTy = OMPBuilder.Task ;
72347234
72357235 auto ProxyFnTy =
72367236 FunctionType::get (Builder.getVoidTy (), {ThreadIDTy, TaskPtrTy},
@@ -7664,7 +7664,8 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::emitTargetTask(
76647664 Builder.CreateStructGEP (TaskWithPrivatesTy, TaskData, 1 );
76657665 for (unsigned int i = 0 ; i < OffloadingArraysToPrivatize.size (); ++i) {
76667666 Value *PtrToPrivatize = OffloadingArraysToPrivatize[i];
7667- Type *ArrayType = getOffloadingArrayType (PtrToPrivatize);
7667+ [[maybe_unused]] Type *ArrayType =
7668+ getOffloadingArrayType (PtrToPrivatize);
76687669 assert (ArrayType && " ArrayType cannot be nullptr" );
76697670
76707671 Type *ElementType = PrivatesTy->getElementType (i);
You can’t perform that action at this time.
0 commit comments