aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2022-11-02 11:11:23 -0700
committerPeter Klausler <pklausler@nvidia.com>2022-12-02 13:17:06 -0800
commit7efec1a40a9a0b7dd43cb4dbbd3b1285741d240b (patch)
treeeffd2f0a8aaacef947b84b8070e58f0de1aa65f0 /clang/lib/Frontend/CompilerInvocation.cpp
parent745f6fcd2ba0dc624d9033679f5454a0a41ecd5b (diff)
downloadllvm-7efec1a40a9a0b7dd43cb4dbbd3b1285741d240b.zip
llvm-7efec1a40a9a0b7dd43cb4dbbd3b1285741d240b.tar.gz
llvm-7efec1a40a9a0b7dd43cb4dbbd3b1285741d240b.tar.bz2
[flang] Don't emit spurious error for polymorphic actual argument in PURE
Definability checking is unconditionally flagging the use of a polymorphic variable as an actual argument for a procedure reference in a PURE subprogram unless the corresponding dummy is INTENT(IN). This isn't necessary, since an INTENT(OUT) polymorphic dummy is already caught as an error in the definition of the callee, which must also be PURE; and an INTENT(IN OUT) or intent-free dummy is allowed to be passed a polymorphic actual in a PURE context, with any attempt to deallocate it being caught in the callee. So add a flag to the definability checker to disable the "polymorphic definition in PURE context" check when using it to check actual arguments. Differential Revision: https://reviews.llvm.org/D139044
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions