aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-07-19 18:03:02 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-07-20 08:11:18 -0500
commitcc92212d75dff07644e478c55a6f145c020f6f8e (patch)
tree771acf198528123ec6f10a7ff8884c60120f61b6 /flang/lib/Frontend/CompilerInvocation.cpp
parent60152f1983336e7098f0d28343cc0cf7c92af702 (diff)
downloadllvm-cc92212d75dff07644e478c55a6f145c020f6f8e.zip
llvm-cc92212d75dff07644e478c55a6f145c020f6f8e.tar.gz
llvm-cc92212d75dff07644e478c55a6f145c020f6f8e.tar.bz2
[libc] Remove global constructors on File type
The `File` interface currently has a destructor to delete the buffer if it is owned by the file. This is problematic for the globally allocated `stdout`, `stdin`, and `stderr` files. This causes the file interface to have global constructors to initialize the destructors to use these. However, these never use the destructors because they don't own the buffer. This patch removes the destructor and calls in manually in the close implementation. The platform close should never need to access the buffer and it needs to be done before clearing the whole thing, so this should work. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D155762
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions