Skip to content

Commit

Permalink
[mlir] Fix -Wunused-variable in OpenMPToLLVMIRTranslation.cpp (NFC)
Browse files Browse the repository at this point in the history
/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.
  • Loading branch information
DamonFool committed Dec 12, 2024
1 parent e909c0c commit 46ec271
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3918,7 +3918,7 @@ convertOmpTarget(Operation &opInst, llvm::IRBuilderBase &builder,
// So, we don't store it in any datastructure. Instead, we just
// do some sanity checks on it right now.
auto mapInfoOp = mappedValue.getDefiningOp<omp::MapInfoOp>();
Type varType = mapInfoOp.getVarType();
[[maybe_unused]] Type varType = mapInfoOp.getVarType();

// Check #1: Check that the type of the private variable matches
// the type of the variable being mapped.
Expand Down

0 comments on commit 46ec271

Please sign in to comment.