fix(compiler): JIT unit tests: Remove unused variables

Remove unused variable `pos` in `End2EndJit_ClearTensor_2D::extract`
and `End2EndJit_EncryptedTensor_2D::extract` to avoid warnings on
compilation.
This commit is contained in:
Andi Drebes
2021-11-09 10:34:15 +01:00
committed by Quentin Bourgerie
parent 5cc551dd4f
commit 8cd893a7fd
2 changed files with 0 additions and 2 deletions

View File

@@ -224,7 +224,6 @@ func @main(%t: tensor<2x10xi64>, %i: index, %j: index) -> i64 {
for (int64_t i = 0; i < dims[0]; i++) {
for (int64_t j = 0; j < dims[1]; j++) {
auto pos = i * dims[1] + j;
mlir::zamalang::IntLambdaArgument<size_t> argi(i);
mlir::zamalang::IntLambdaArgument<size_t> argj(j);
ASSERT_EXPECTED_VALUE(lambda({&arg, &argi, &argj}), TENSOR2D_GET(i, j));

View File

@@ -55,7 +55,6 @@ func @main(%t: tensor<2x10x!HLFHE.eint<6>>, %i: index, %j: index) ->
for (int64_t i = 0; i < dims[0]; i++) {
for (int64_t j = 0; j < dims[1]; j++) {
auto pos = i * dims[1] + j;
mlir::zamalang::IntLambdaArgument<size_t> argi(i);
mlir::zamalang::IntLambdaArgument<size_t> argj(j);
ASSERT_EXPECTED_VALUE(lambda({&arg, &argi, &argj}), TENSOR2D_GET(i, j));