[PATCH] D87535: [flang] Fix bug for forward referenced type
Pete Steinfeld via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 11:43:42 PDT 2020
PeteSteinfeld added inline comments.
================
Comment at: flang/lib/Semantics/symbol.cpp:544
if (const auto *dtDetails{detailsIf<DerivedTypeDetails>()}) {
- if (!scope) {
- scope = scope_;
+ const Scope *localScope = scope ? scope : scope_;
+ if (localScope) {
----------------
klausler wrote:
> if (const Scope *localScope{scope ? scope : scope_}) { return dtDetails->GetParentComponent(localScope); }
Thanks, Peter. I'll redo this section of code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87535/new/
https://reviews.llvm.org/D87535
More information about the llvm-commits
mailing list