[all-commits] [llvm/llvm-project] c87063: [flang] Fix some memory leaks (#121050)
Matthias Springer via All-commits
all-commits at lists.llvm.org
Wed Dec 25 00:42:25 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c870632ef6162fbdccaad8cd09420728220ad344
https://github.com/llvm/llvm-project/commit/c870632ef6162fbdccaad8cd09420728220ad344
Author: Matthias Springer <me at m-sp.org>
Date: 2024-12-25 (Wed, 25 Dec 2024)
Changed paths:
M flang/include/flang/Frontend/FrontendActions.h
M flang/include/flang/Lower/AbstractConverter.h
M flang/include/flang/Lower/Bridge.h
M flang/include/flang/Lower/OpenACC.h
M flang/include/flang/Tools/CrossToolHelpers.h
M flang/lib/Frontend/FrontendActions.cpp
M flang/lib/Lower/Bridge.cpp
M flang/lib/Lower/OpenACC.cpp
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
M flang/unittests/Frontend/CodeGenActionTest.cpp
M flang/unittests/Optimizer/Builder/CharacterTest.cpp
M flang/unittests/Optimizer/Builder/ComplexTest.cpp
M flang/unittests/Optimizer/Builder/FIRBuilderTest.cpp
M flang/unittests/Optimizer/Builder/HLFIRToolsTest.cpp
M flang/unittests/Optimizer/Builder/Runtime/RuntimeCallTestBase.h
M flang/unittests/Optimizer/FortranVariableTest.cpp
M flang/unittests/Runtime/ArrayConstructor.cpp
M flang/unittests/Runtime/CharacterTest.cpp
Log Message:
-----------
[flang] Fix some memory leaks (#121050)
This commit fixes some but not all memory leaks in Flang. There are
still 91 tests that fail with ASAN.
- Use `mlir::OwningOpRef` instead of `std::unique_ptr`. The latter does
not free allocations of nested blocks.
- Pass `ModuleOp` as value instead of reference.
- Add few missing deallocations in test cases and other places.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list