[flang] Fix bug
authorpeter klausler <pklausler@nvidia.com>
Thu, 25 Jul 2019 17:04:22 +0000 (10:04 -0700)
committerpeter klausler <pklausler@nvidia.com>
Thu, 25 Jul 2019 17:40:09 +0000 (10:40 -0700)
Original-commit: flang-compiler/f18@482f882e3f8c5d6dae699949eb848001dc65bbc7
Reviewed-on: https://github.com/flang-compiler/f18/pull/603

flang/lib/evaluate/tools.h

index 595589a..02e9b23 100644 (file)
@@ -65,7 +65,7 @@ struct IsVariableVisitor : public virtual VisitorBase<std::optional<bool>> {
   using Result = std::optional<bool>;
   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); }