Skip to content

Commit ec32d88

Browse files
authored
Annotate potentially unused variables introduced in #133499 (#144379)
1 parent 05cd32a commit ec32d88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)