Skip to content

Commit 46ec271

Browse files
committed
[mlir] Fix -Wunused-variable in OpenMPToLLVMIRTranslation.cpp (NFC)
/llvm-project/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp:3921:12: error: unused variable 'varType' [-Werror,-Wunused-variable] Type varType = mapInfoOp.getVarType(); ^ 1 error generated.
1 parent e909c0c commit 46ec271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3918,7 +3918,7 @@ convertOmpTarget(Operation &opInst, llvm::IRBuilderBase &builder,
39183918
// So, we don't store it in any datastructure. Instead, we just
39193919
// do some sanity checks on it right now.
39203920
auto mapInfoOp = mappedValue.getDefiningOp<omp::MapInfoOp>();
3921-
Type varType = mapInfoOp.getVarType();
3921+
[[maybe_unused]] Type varType = mapInfoOp.getVarType();
39223922

39233923
// Check #1: Check that the type of the private variable matches
39243924
// the type of the variable being mapped.

0 commit comments

Comments
 (0)