From 6347b7c6952642f429b6f4c941c6cbf9fc6eadca Mon Sep 17 00:00:00 2001 From: peter klausler Date: Thu, 25 Jul 2019 10:04:22 -0700 Subject: [PATCH] [flang] Fix bug Original-commit: flang-compiler/f18@482f882e3f8c5d6dae699949eb848001dc65bbc7 Reviewed-on: https://github.com/flang-compiler/f18/pull/603 --- flang/lib/evaluate/tools.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/lib/evaluate/tools.h b/flang/lib/evaluate/tools.h index 595589a..02e9b23 100644 --- a/flang/lib/evaluate/tools.h +++ b/flang/lib/evaluate/tools.h @@ -65,7 +65,7 @@ struct IsVariableVisitor : public virtual VisitorBase> { using Result = std::optional; explicit IsVariableVisitor(std::nullptr_t) {} void Handle(const StaticDataObject &) { Return(false); } - void Handle(const DataRef &) { Return(true); } + void Handle(const Symbol &) { Return(true); } void Pre(const Component &) { Return(true); } void Pre(const ArrayRef &) { Return(true); } void Pre(const CoarrayRef &) { Return(true); } -- 2.7.4