[all-commits] [llvm/llvm-project] 1dff86: [flang] Fix crashes due to failure to find a subpr...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Jun 3 12:46:48 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1dff8637b11232a7e6e7994c2ed3526262564786
https://github.com/llvm/llvm-project/commit/1dff8637b11232a7e6e7994c2ed3526262564786
Author: peter klausler <pklausler at nvidia.com>
Date: 2021-06-03 (Thu, 03 Jun 2021)
Changed paths:
M flang/include/flang/Semantics/semantics.h
M flang/lib/Frontend/FrontendActions.cpp
M flang/lib/Semantics/check-io.cpp
M flang/lib/Semantics/scope.cpp
M flang/lib/Semantics/tools.cpp
M flang/tools/f18/f18.cpp
Log Message:
-----------
[flang] Fix crashes due to failure to find a subprogram
In error recovery situations, the mappings from source locations
to scopes were failing in a way that tripped some asserts.
Specifically, FindPureProcedureContaining() wasn't coping well
when starting at the global scope. (And since the global scope
no longer has a source range, clean up the Semantics constructor
to avoid confusion.)
Differential Revision: https://reviews.llvm.org/D103567
More information about the All-commits
mailing list