diff options
author | Peter Klausler <pklausler@nvidia.com> | 2022-10-07 16:52:37 -0700 |
---|---|---|
committer | Peter Klausler <pklausler@nvidia.com> | 2022-10-29 12:00:48 -0700 |
commit | cd9aff8aa87d5397bb674d1e35904314dca72aac (patch) | |
tree | fca4efec02554d44efaaaaced4804ba1f5f62c06 /llvm/lib/Support/CommandLine.cpp | |
parent | 43f0f1a66ff074628305f5d2fc11ce5dd4edef53 (diff) | |
download | llvm-cd9aff8aa87d5397bb674d1e35904314dca72aac.zip llvm-cd9aff8aa87d5397bb674d1e35904314dca72aac.tar.gz llvm-cd9aff8aa87d5397bb674d1e35904314dca72aac.tar.bz2 |
[flang] Catch and diagnose attempts to misuse NULL()
Some intrinsic functions can handle NULL() as an actual argument; most
can't. Distinguish the two with a new ArgFlag facility in the intrinsic
procedure table. Also transform some confusing Optionality codes that
were standing in for flags into ArgFlags. Last, return false for a NULL()
pointer from the utility IsActuallyConstant(), ensuring that it can
still deal with a nested NULL() for components in structure constructors.
Differential Revision: https://reviews.llvm.org/D136893
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions