diff options
author | Tim Keith <tkeith@nvidia.com> | 2020-08-06 20:33:59 -0700 |
---|---|---|
committer | Tim Keith <tkeith@nvidia.com> | 2020-08-06 20:34:00 -0700 |
commit | d8713523a2f5847ca69c8ef172578a915c129fe8 (patch) | |
tree | e15ddbfe1e9806b02c3a9731665315301364bd3d /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | f13f2e16f00e8d23b49b0dfc58d63adc052d0222 (diff) | |
download | llvm-d8713523a2f5847ca69c8ef172578a915c129fe8.zip llvm-d8713523a2f5847ca69c8ef172578a915c129fe8.tar.gz llvm-d8713523a2f5847ca69c8ef172578a915c129fe8.tar.bz2 |
[flang] Improve message for assignment to subprogram
In the example below we were producing the error message
"Assignment to constant 'f' is not allowed":
```
function f() result(r)
f = 1.0
end
```
This changes it to a more helpful message when the LHS is a subprogram
name and also mentions the function result name when it's a function.
Differential Revision: https://reviews.llvm.org/D85483
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions