[flang] Address TODO from previous changes to IsSaved()
authorPeter Klausler <pklausler@nvidia.com>
Fri, 26 Nov 2021 20:40:11 +0000 (12:40 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 30 Nov 2021 18:39:51 +0000 (10:39 -0800)
commit8bc593cbbb1ae6aac6443132ae2d33c6513b1a2c
tree505d6b992d7db5540bb34c6ddbb843bc06481613
parentc0b33a65f21c780a1a89ea7e8caa43871b2fd29c
[flang] Address TODO from previous changes to IsSaved()

An earlier fix to evaluate::IsSaved() needed to preserve its
treatment of named constants in modules and main programs -- i.e.
they would appear to be saved -- until a correction was added
to the lowering code.  This TODO can now be resolved.

Differential Revision: https://reviews.llvm.org/D114756
flang/lib/Evaluate/tools.cpp