diff options
author | Peter Steinfeld <psteinfeld@nvidia.com> | 2022-09-21 13:08:02 -0700 |
---|---|---|
committer | Peter Steinfeld <psteinfeld@nvidia.com> | 2022-09-22 07:13:03 -0700 |
commit | 76fd4bf675b5ceeeca0e4e15cf15d89c7acf4947 (patch) | |
tree | f56a567d41b8f6279e04d90cb34b5f9bfd3a300f /clang/lib/Lex/ModuleMap.cpp | |
parent | e31482fb73a91e3b349f20894ffb083e7b064e38 (diff) | |
download | llvm-76fd4bf675b5ceeeca0e4e15cf15d89c7acf4947.zip llvm-76fd4bf675b5ceeeca0e4e15cf15d89c7acf4947.tar.gz llvm-76fd4bf675b5ceeeca0e4e15cf15d89c7acf4947.tar.bz2 |
[Flang] Finalize IO operations after calling EndIO
The process of passing arguments to IO calls can cause allocations that
get referenced during EndIO calls. Calling "Finalize" causes these
allocations to be deallocated. This means that references to them in
the code in EndIO will be invalid. The fix is to delay the call to
"finalize" until after the call to EndIO.
This particularly causes problems with the IO items are strings that are
produced by calls to functions.
Differential Revision: https://reviews.llvm.org/D134383
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions