mirror of
https://github.com/intel/llvm.git
synced 2026-01-23 16:06:39 +08:00
[mlir] Fix a warning
This patch fixes: mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp:2905:17: error: unused variable 'var' [-Werror,-Wunused-variable] mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp:2908:42: error: unused variable 'dataClauseOptional' [-Werror,-Wunused-variable]
This commit is contained in:
@@ -2905,11 +2905,13 @@ checkDeclareOperands(Op &op, const mlir::ValueRange &operands,
|
||||
mlir::Value var{getVar(operand.getDefiningOp())};
|
||||
assert(var && "declare operands can only be data entry operations which "
|
||||
"must have var");
|
||||
(void)var;
|
||||
std::optional<mlir::acc::DataClause> dataClauseOptional{
|
||||
getDataClause(operand.getDefiningOp())};
|
||||
assert(dataClauseOptional.has_value() &&
|
||||
"declare operands can only be data entry operations which must have "
|
||||
"dataClause");
|
||||
(void)dataClauseOptional;
|
||||
}
|
||||
|
||||
return success();
|
||||
|
||||
Reference in New Issue
Block a user