@@ -671,8 +671,8 @@ static LValue emitFunctionDeclLValue(CIRGenFunction &cgf, const Expr *e,
671671
672672 mlir::Type fnTy = funcOp.getFunctionType ();
673673 mlir::Type ptrTy = cir::PointerType::get (fnTy);
674- mlir::Value addr = cgf. getBuilder (). create < cir::GetGlobalOp>(
675- loc, ptrTy, funcOp.getSymName ());
674+ mlir::Value addr = cir::GetGlobalOp::create (cgf. getBuilder (), loc, ptrTy,
675+ funcOp.getSymName ());
676676
677677 if (funcOp.getFunctionType () != cgf.convertType (fd->getType ())) {
678678 fnTy = cgf.convertType (fd->getType ());
@@ -2020,18 +2020,17 @@ mlir::Value CIRGenFunction::emitOpOnBoolExpr(mlir::Location loc,
20202020 mlir::Value condV = emitOpOnBoolExpr (loc, condOp->getCond ());
20212021
20222022 mlir::Value ternaryOpRes =
2023- builder
2024- .create <cir::TernaryOp>(
2025- loc, condV, /* thenBuilder=*/
2026- [this , trueExpr](mlir::OpBuilder &b, mlir::Location loc) {
2027- mlir::Value lhs = emitScalarExpr (trueExpr);
2028- cir::YieldOp::create (b, loc, lhs);
2029- },
2030- /* elseBuilder=*/
2031- [this , falseExpr](mlir::OpBuilder &b, mlir::Location loc) {
2032- mlir::Value rhs = emitScalarExpr (falseExpr);
2033- cir::YieldOp::create (b, loc, rhs);
2034- })
2023+ cir::TernaryOp::create (
2024+ builder, loc, condV, /* thenBuilder=*/
2025+ [this , trueExpr](mlir::OpBuilder &b, mlir::Location loc) {
2026+ mlir::Value lhs = emitScalarExpr (trueExpr);
2027+ cir::YieldOp::create (b, loc, lhs);
2028+ },
2029+ /* elseBuilder=*/
2030+ [this , falseExpr](mlir::OpBuilder &b, mlir::Location loc) {
2031+ mlir::Value rhs = emitScalarExpr (falseExpr);
2032+ cir::YieldOp::create (b, loc, rhs);
2033+ })
20352034 .getResult ();
20362035
20372036 return emitScalarConversion (ternaryOpRes, condOp->getType (),
0 commit comments