aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ProgramTest.cpp
diff options
context:
space:
mode:
authorValentin Clement <clementval@gmail.com>2022-10-31 11:02:50 +0100
committerValentin Clement <clementval@gmail.com>2022-10-31 11:03:13 +0100
commit90e9fcbb68a3afa3ac25aa54555355634554c349 (patch)
tree25710c014a1e50180af2e49d334ae692d7267156 /llvm/unittests/Support/ProgramTest.cpp
parenta2ab8fc46c63e6d21b6648202907a33064fbfb6e (diff)
downloadllvm-90e9fcbb68a3afa3ac25aa54555355634554c349.zip
llvm-90e9fcbb68a3afa3ac25aa54555355634554c349.tar.gz
llvm-90e9fcbb68a3afa3ac25aa54555355634554c349.tar.bz2
[flang] Set declared type when NULLIFY a polymorphic pointer
Fortran standard 7.3.2.3 point 7 mentions that a diassociated pointer dynamic type is its declared type. in 9.7.2 note 1, when a NULLIFY statement is applied to a polymorphic pointer, its dynamic type becomes the same as its declared type. This patch enforce these standard points by calling the runtime function `PointerNullifyDerived` with the declared type descriptor. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D136948
Diffstat (limited to 'llvm/unittests/Support/ProgramTest.cpp')
0 files changed, 0 insertions, 0 deletions