diff options
author | Slava Zakharin <szakharin@nvidia.com> | 2023-07-19 10:03:27 -0700 |
---|---|---|
committer | Slava Zakharin <szakharin@nvidia.com> | 2023-07-19 14:38:31 -0700 |
commit | b9e435cbe494c919e8edc973e696e88e08e0dace (patch) | |
tree | ca6c0e600f83a7799fb8c70e372f37b4e60ee7f5 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | b63698727d84a84f2163386aa3209ab28cc73c7e (diff) | |
download | llvm-b9e435cbe494c919e8edc973e696e88e08e0dace.zip llvm-b9e435cbe494c919e8edc973e696e88e08e0dace.tar.gz llvm-b9e435cbe494c919e8edc973e696e88e08e0dace.tar.bz2 |
[flang][hlfir] Removed incorrect clean-up in the implied-do lowering.
The lowering of calls/expressions unconditionally inserts DestroyOp
clean-up for hlfir.expr values, which is wrong in the case where
the value is used as a result of the elemental operation created
during the implied-do lowering. A cleaner fix could be to avoid
DestroyOp insertion at all, but I have not figure out an easy
way to do it. The DestroyOp look-up I used seems to be quite
reliable, so it should just work.
Reviewed By: clementval
Differential Revision: https://reviews.llvm.org/D155665
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions