[all-commits] [llvm/llvm-project] f16196: [flang] Better error recovery for bad submodules
Peter Klausler via All-commits
all-commits at lists.llvm.org
Wed Jun 29 11:35:10 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f161964e1c00604941f276fe851aafabac7af5b6
https://github.com/llvm/llvm-project/commit/f161964e1c00604941f276fe851aafabac7af5b6
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-06-29 (Wed, 29 Jun 2022)
Changed paths:
M flang/lib/Semantics/resolve-names.cpp
Log Message:
-----------
[flang] Better error recovery for bad submodules
When a submodule appears in a source file and the compiler can't find the
named ancestor module (and submodule, if one appears), crashes may occur
later due to the absence of a scope. For better resilience, a dummy
ancestral scope should be generated within which the submodule scope
can be created.
Differential Revision: https://reviews.llvm.org/D128760
More information about the All-commits
mailing list