aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorPeter Klausler <35819229+klausler@users.noreply.github.com>2024-06-03 13:46:31 -0700
committerGitHub <noreply@github.com>2024-06-03 13:46:31 -0700
commitb61d7ec16bf5c740346e87b8b03315e38fe31725 (patch)
treebfcef53589177d3f235af66fa9940e6816ef9cdb /clang/lib/CodeGen/CodeGenModule.cpp
parent5cb00785aa56d4acc97b083df5305d2959f6bd4a (diff)
downloadllvm-b61d7ec16bf5c740346e87b8b03315e38fe31725.zip
llvm-b61d7ec16bf5c740346e87b8b03315e38fe31725.tar.gz
llvm-b61d7ec16bf5c740346e87b8b03315e38fe31725.tar.bz2
[flang] Relax constraints on PURE/ELEMENTAL dummy arguments (#93748)
The standard requires that dummy arguments to PURE functions be INTENT(IN) or VALUE, but PURE subroutines are allowed to have modifiable dummy arguments. This makes it impossible to declare atomic operations as PURE functions, which consequently makes such atomic operations ineligible for use in parallel constructs and DO CONCURRENT. This patch downgrades this error to a warning by default, which can be seen with -pedantic & al. and remain an error with -Werror.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions