aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2022-01-31 10:07:53 -0800
committerPeter Klausler <pklausler@nvidia.com>2022-02-02 11:15:58 -0800
commitaee705661fe8c2ecbf0e1766ee93dbad286a6b8c (patch)
tree6dbd1394fdb4f5d833ab2a5ba0d848198145dab3 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parentbc699ed0bfaf82700f02fab6a27bdcaad2396f00 (diff)
downloadllvm-aee705661fe8c2ecbf0e1766ee93dbad286a6b8c.zip
llvm-aee705661fe8c2ecbf0e1766ee93dbad286a6b8c.tar.gz
llvm-aee705661fe8c2ecbf0e1766ee93dbad286a6b8c.tar.bz2
[flang] Silence bogus error on use after IMPORT
When a scope uses an explicit IMPORT statement to import a symbol from the scope's host, it should not emit a bogus error message later if that symbol is used in a specification construct. The code that checks for imports being hidden by local declarations was not allowing for the presence of host association (or USE) indirection symbols in the local scope. Fix by using GetUltimate() before checking for the hidden symbol. Differential Revision: https://reviews.llvm.org/D118747
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
0 files changed, 0 insertions, 0 deletions