aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <Krzysztof.Parzyszek@amd.com>2025-06-18 10:42:39 -0500
committerGitHub <noreply@github.com>2025-06-18 10:42:39 -0500
commit5d502aeddf2a5d93c3fd93103054261acf4d92f3 (patch)
tree066a75702fcae350bf17c7fe07bba80d040638cd /llvm/lib/CodeGen/MachineFunction.cpp
parent9da9d32670ddbf610f0788236e78b2382037f00b (diff)
downloadllvm-5d502aeddf2a5d93c3fd93103054261acf4d92f3.zip
llvm-5d502aeddf2a5d93c3fd93103054261acf4d92f3.tar.gz
llvm-5d502aeddf2a5d93c3fd93103054261acf4d92f3.tar.bz2
[flang][OpenMP] Clarify confusing error message (#144707)
The message "The atomic variable x should occur exactly once among the arguments of the top-level [...] operator" was intended to convey that (1) an atomic variable should be an argument, and (2) it should be exactly one of the arguments. However, the wording turned out to be sowing confusion instead. Rework the corresponding check, and emit an individual error message for each problematic situation: - "atomic variable cannot be a proper subexpression of an argument", - "atomic variable should appear as an argument", - "atomic variable should be exactly one of the arguments". Fixes https://github.com/llvm/llvm-project/issues/144599
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions