[all-commits] [llvm/llvm-project] f3222b: [flang] Avoid deallocation of intent(out) when dum...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Wed Sep 21 09:48:27 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f3222be4fcb76e8c70aa8ebfb68ebf6ace1c6aee
https://github.com/llvm/llvm-project/commit/f3222be4fcb76e8c70aa8ebfb68ebf6ace1c6aee
Author: Valentin Clement <clementval at gmail.com>
Date: 2022-09-21 (Wed, 21 Sep 2022)
Changed paths:
M flang/lib/Lower/ConvertVariable.cpp
M flang/test/Lower/intentout-deallocate.f90
Log Message:
-----------
[flang] Avoid deallocation of intent(out) when dummy arg is not in entry stmt
In some case, the ENTRY statement in a procedure is including some
dummy argument. Until now, deallocation of intent(out) allocatable was
not checking for this and it could result in a segmentation fault.
This patch avoids deallocation when the value is not in the ENTRY stmt.
Reviewed By: jeanPerier, PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D134342
More information about the All-commits
mailing list