[flang-commits] [PATCH] D153516: [flang][hlfir] user defined assignment codegen
Jean Perier via Phabricator via flang-commits
flang-commits at lists.llvm.org
Fri Jun 23 06:30:49 PDT 2023
jeanPerier added inline comments.
================
Comment at: flang/lib/Optimizer/HLFIR/Transforms/LowerHLFIROrderedAssignments.cpp:382
+ if (fir::isa_trivial(mold.getType()))
+ // fir.ref<T> to T.
+ return hlfir::Entity{builder.create<fir::LoadOp>(loc, input)};
----------------
tblah wrote:
> How do we know that T doesn't need conversion?
We do not, thanks for catching this, I added convert here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153516/new/
https://reviews.llvm.org/D153516
More information about the flang-commits
mailing list