-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Catch more bad TARGET= arguments to ASSOCIATED()
The TARGET= argument to the intrinsic function ASSOCIATED() must be a valid target for the POINTER= argument, but we are missing some cases, such as parenthesized expressions. Add more checking, and restructure the logic a bit to make the case analysis structure more clear. Fixes llvm-test-suite/Fortran/gfortran/regression/associated_target_1.f90. Differential Revision: https://reviews.llvm.org/D157341
- Loading branch information
Showing
2 changed files
with
78 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters