Skip to content

Commit fc62a60

Browse files
committed
Address code review comments
1 parent 6879b70 commit fc62a60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,10 +861,11 @@ mlir::Value ComplexExprEmitter::emitBinDiv(const BinOpInfo &op) {
861861
mlir::isa<cir::ComplexType>(op.rhs.getType())) {
862862
cir::ComplexRangeKind rangeKind =
863863
getComplexRangeAttr(op.fpFeatures.getComplexRange());
864-
return builder.create<cir::ComplexDivOp>(op.loc, op.lhs, op.rhs, rangeKind);
864+
return cir::ComplexDivOp::create(builder, op.loc, op.lhs, op.rhs,
865+
rangeKind);
865866
}
866867

867-
cgf.cgm.errorNYI("ComplexExprEmitter::emitBinMu between Complex & Scalar");
868+
cgf.cgm.errorNYI("ComplexExprEmitter::emitBinDiv between Complex & Scalar");
868869
return {};
869870
}
870871

0 commit comments

Comments
 (0)