================
@@ -606,17 +606,23 @@ mlir::Value ComplexExprEmitter::emitBinAdd(const
BinOpInfo &op) {
mlir::isa<cir::ComplexType>(op.rhs.getType()))
return cir::ComplexAddOp::create(builder, op.loc, op.lhs, op.rhs);
+ auto createAdd = [&](mlir::Location loc, mlir::Value a, mlir::Value b) {
+ return cir::isFPOrVectorOfFPType(a.getType())
----------------
andykaylor wrote:
We could, but the verifier will also check that. I suppose an assert here would
catch it closer to where the error was introduced.
https://github.com/llvm/llvm-project/pull/201462
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits