[flang] Change CheckDefinabilityInPureScope to return bool
authorTim Keith <tkeith@nvidia.com>
Thu, 5 Mar 2020 21:05:45 +0000 (13:05 -0800)
committerTim Keith <tkeith@nvidia.com>
Tue, 10 Mar 2020 00:25:12 +0000 (17:25 -0700)
commitc97e1c0a451e1f1be2ced035f4728d9b3072d1a0
tree6e471f341df0451f571d4d6a2a2e1efb51206eb9
parent2cc21cecf2478eb71f9ab25f6b7fee7161c3b87b
[flang] Change CheckDefinabilityInPureScope to return bool

Have CheckDefinabilityInPureScope and CheckCopyabilityInPureScope return
false when their checks fail and report errors so that we will be able
to avoid reporting extra errors in those cases.

Original-commit: flang-compiler/f18@305a3470e572161483b0f430514b77ba19f932ea
Reviewed-on: https://github.com/flang-compiler/f18/pull/1050
Tree-same-pre-rewrite: false
flang/lib/Semantics/assignment.cpp
flang/lib/Semantics/assignment.h