Skip to content

Commit 64838d9

Browse files
committed
Fixup
1 parent c7d9a3e commit 64838d9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3353,10 +3353,10 @@ mlir::LogicalResult CIRToLLVMComplexAddOpLowering::matchAndRewrite(
33533353
mlir::LLVM::PoisonOp::create(rewriter, op->getLoc(), complexLLVMTy);
33543354

33553355
auto realComplex = mlir::LLVM::InsertValueOp::create(
3356-
rewriter, op->getLoc(), initialComplex, newReal, 0);
3356+
rewriter, op->getLoc(), initialComplex, newReal, ArrayRef(int64_t{0}));
33573357

3358-
rewriter.replaceOpWithNewOp<mlir::LLVM::InsertValueOp>(op, realComplex,
3359-
newImag, 1);
3358+
rewriter.replaceOpWithNewOp<mlir::LLVM::InsertValueOp>(
3359+
op, realComplex, newImag, ArrayRef(int64_t{1}));
33603360

33613361
return mlir::success();
33623362
}
@@ -3370,10 +3370,12 @@ mlir::LogicalResult CIRToLLVMComplexCreateOpLowering::matchAndRewrite(
33703370
mlir::LLVM::UndefOp::create(rewriter, op->getLoc(), complexLLVMTy);
33713371

33723372
auto realComplex = mlir::LLVM::InsertValueOp::create(
3373-
rewriter, op->getLoc(), initialComplex, adaptor.getReal(), 0);
3373+
rewriter, op->getLoc(), initialComplex, adaptor.getReal(),
3374+
ArrayRef(int64_t{0}));
33743375

33753376
auto complex = mlir::LLVM::InsertValueOp::create(
3376-
rewriter, op->getLoc(), realComplex, adaptor.getImag(), 1);
3377+
rewriter, op->getLoc(), realComplex, adaptor.getImag(),
3378+
ArrayRef(int64_t{1}));
33773379

33783380
rewriter.replaceOp(op, complex);
33793381
return mlir::success();

0 commit comments

Comments
 (0)