Skip to content

Commit

Permalink
Revert "[mlir] Fix -Wunused-variable in OpenMPToLLVMIRTranslation.cpp…
Browse files Browse the repository at this point in the history
… (NFC)"

This reverts commit 46ec271.
  • Loading branch information
tblah committed Dec 23, 2024
1 parent 2f2160f commit fdb2fa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3923,7 +3923,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>();
[[maybe_unused]] Type varType = mapInfoOp.getVarType();
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 fdb2fa0

Please sign in to comment.