Skip to content

Commit 88c2832

Browse files
committed
Use builder.createTemporary
1 parent 5fbf00d commit 88c2832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/ConvertCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ Fortran::lower::genCallOpAndResult(
644644
caller.getCallDescription().chevrons()[3], stmtCtx));
645645
if (!fir::unwrapRefType(stream.getType()).isInteger(64)) {
646646
auto i64Ty = mlir::IntegerType::get(builder.getContext(), 64);
647-
mlir::Value newStream = fir::AllocaOp::create(builder, loc, i64Ty);
647+
mlir::Value newStream = builder.createTemporary(loc, i64Ty);
648648
mlir::Value load = fir::LoadOp::create(builder, loc, stream);
649649
mlir::Value conv = fir::ConvertOp::create(builder, loc, i64Ty, load);
650650
fir::StoreOp::create(builder, loc, conv, newStream);

0 commit comments

Comments
 (0)