[flang-commits] [flang] [flang][runtime] Validate pointer DEALLOCATE (PR #78612)

via flang-commits flang-commits at lists.llvm.org
Fri Jan 19 01:49:49 PST 2024


https://github.com/jeanPerier approved this pull request.

Lowering change looks good, thanks.
I think your patch is safe to catch deallocation of allocated pointer subojects, but could still segfault if the program pass a pointer pointing to something that is not a pointer or pointer suboject. Although, given this last case always crashes today, this still seems to be an improvement.

https://github.com/llvm/llvm-project/pull/78612


More information about the flang-commits mailing list