fix(compiler): Fix lowering MidLFHE.add_glwe_int, the operand type can be already lowered

This commit is contained in:
Quentin Bourgerie
2021-10-25 19:13:09 +02:00
committed by Andi Drebes
parent ba54560680
commit a804e90291

View File

@@ -129,9 +129,8 @@ mlir::Value createAddPlainLweCiphertext(mlir::PatternRewriter &rewriter,
mlir::Location loc, mlir::Value arg0,
mlir::Value arg1,
mlir::OpResult result) {
auto glwe = arg0.getType().cast<GLWECipherTextType>();
return createAddPlainLweCiphertextWithGlwe(rewriter, loc, arg0, arg1, result,
glwe);
arg0.getType());
}
mlir::Value createSubIntLweCiphertext(mlir::PatternRewriter &rewriter,