diff --git a/compiler/tests/unittest/end_to_end_jit_clear_tensor.cc b/compiler/tests/unittest/end_to_end_jit_clear_tensor.cc index 0251c4b8a..bb8cc2328 100644 --- a/compiler/tests/unittest/end_to_end_jit_clear_tensor.cc +++ b/compiler/tests/unittest/end_to_end_jit_clear_tensor.cc @@ -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 argi(i); mlir::zamalang::IntLambdaArgument argj(j); ASSERT_EXPECTED_VALUE(lambda({&arg, &argi, &argj}), TENSOR2D_GET(i, j)); diff --git a/compiler/tests/unittest/end_to_end_jit_encrypted_tensor.cc b/compiler/tests/unittest/end_to_end_jit_encrypted_tensor.cc index 2a0ed278e..4cf2325a2 100644 --- a/compiler/tests/unittest/end_to_end_jit_encrypted_tensor.cc +++ b/compiler/tests/unittest/end_to_end_jit_encrypted_tensor.cc @@ -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 argi(i); mlir::zamalang::IntLambdaArgument argj(j); ASSERT_EXPECTED_VALUE(lambda({&arg, &argi, &argj}), TENSOR2D_GET(i, j));