[PATCH] D99342: [flang] Fix CHECK() calls on erroneous procedure declarations

Pete Steinfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 25 08:05:46 PDT 2021


PeteSteinfeld created this revision.
PeteSteinfeld added reviewers: klausler, tskeith.
PeteSteinfeld requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When writing tests for a previous problem, I ran across situations where the
compiler was failing calls to CHECK().  In these situations, the compiler had
inconsistent semantic information because the programs were erroneous.  This
inconsistent information was causing the calls to CHECK().

I fixed this by avoiding the code that ended up making the failed calls to
CHECK() and making sure that we were only avoiding these situations when the
associated symbols were erroneous.

I also added tests that would cause the calls to CHECK() without these changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99342

Files:
  flang/include/flang/Semantics/symbol.h
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/resolve18.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99342.333307.patch
Type: text/x-patch
Size: 3944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210325/8e64f5f1/attachment.bin>


More information about the llvm-commits mailing list