fix(compiler): Remove unused variables in lib/Dialect/FHE/IR/FHEOps.cpp

This commit is contained in:
Andi Drebes
2022-01-07 10:48:47 +01:00
committed by Quentin Bourgerie
parent 498505c2f8
commit 94f160eef1

View File

@@ -109,12 +109,11 @@ bool verifyEncryptedIntegerInputsConsistency(::mlir::OpState &op,
::mlir::LogicalResult verifyApplyLookupTable(ApplyLookupTableEintOp &op) {
auto ct = op.a().getType().cast<EncryptedIntegerType>();
auto lut = op.lut().getType().cast<TensorType>();
auto result = op.getResult().getType().cast<EncryptedIntegerType>();
// Check the shape of lut argument
auto width = ct.getWidth();
auto expectedSize = 1 << width;
auto lCstShape = lut.getShape();
mlir::SmallVector<int64_t, 1> expectedShape{expectedSize};
if (!lut.hasStaticShape(expectedShape)) {
emitErrorBadLutSize(op, "lut", "ct", expectedSize, width);