From 94f160eef10ffcef33cfafc5f9eb13ce69298f34 Mon Sep 17 00:00:00 2001 From: Andi Drebes Date: Fri, 7 Jan 2022 10:48:47 +0100 Subject: [PATCH] fix(compiler): Remove unused variables in lib/Dialect/FHE/IR/FHEOps.cpp --- compiler/lib/Dialect/FHE/IR/FHEOps.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/lib/Dialect/FHE/IR/FHEOps.cpp b/compiler/lib/Dialect/FHE/IR/FHEOps.cpp index 6b0ab6b25..8637773bd 100644 --- a/compiler/lib/Dialect/FHE/IR/FHEOps.cpp +++ b/compiler/lib/Dialect/FHE/IR/FHEOps.cpp @@ -109,12 +109,11 @@ bool verifyEncryptedIntegerInputsConsistency(::mlir::OpState &op, ::mlir::LogicalResult verifyApplyLookupTable(ApplyLookupTableEintOp &op) { auto ct = op.a().getType().cast(); auto lut = op.lut().getType().cast(); - auto result = op.getResult().getType().cast(); // Check the shape of lut argument auto width = ct.getWidth(); auto expectedSize = 1 << width; - auto lCstShape = lut.getShape(); + mlir::SmallVector expectedShape{expectedSize}; if (!lut.hasStaticShape(expectedShape)) { emitErrorBadLutSize(op, "lut", "ct", expectedSize, width);