File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
flang/lib/Optimizer/CodeGen Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1074,8 +1074,8 @@ struct AllocMemOpConversion : public fir::FIROpConversion<fir::AllocMemOp> {
10741074 // As the return value of malloc(0) is implementation defined, allocate one
10751075 // byte to ensure the allocation status being true. This behavior aligns to
10761076 // what the runtime has.
1077- mlir::Value zero = genConstantIndex (loc, ity, rewriter, 0 );
1078- mlir::Value one = genConstantIndex (loc, ity, rewriter, 1 );
1077+ mlir::Value zero = fir:: genConstantIndex (loc, ity, rewriter, 0 );
1078+ mlir::Value one = fir:: genConstantIndex (loc, ity, rewriter, 1 );
10791079 mlir::Value cmp = rewriter.create <mlir::LLVM::ICmpOp>(
10801080 loc, mlir::LLVM::ICmpPredicate::sgt, size, zero);
10811081 size = rewriter.create <mlir::LLVM::SelectOp>(loc, cmp, size, one);
You can’t perform that action at this time.
0 commit comments