aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2022-10-07 16:52:37 -0700
committerPeter Klausler <pklausler@nvidia.com>2022-10-29 12:00:48 -0700
commitcd9aff8aa87d5397bb674d1e35904314dca72aac (patch)
treefca4efec02554d44efaaaaced4804ba1f5f62c06 /llvm/lib/Support/CommandLine.cpp
parent43f0f1a66ff074628305f5d2fc11ce5dd4edef53 (diff)
downloadllvm-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