[flang] correct typo in unparse.cc found in test
authorpeter klausler <pklausler@nvidia.com>
Wed, 11 Jul 2018 15:35:18 +0000 (08:35 -0700)
committerpeter klausler <pklausler@nvidia.com>
Wed, 11 Jul 2018 17:21:35 +0000 (10:21 -0700)
Original-commit: flang-compiler/f18@1aa60cccc4f0a56802551d2ecae8eba4f5ed668b
Reviewed-on: https://github.com/flang-compiler/f18/pull/119
Tree-same-pre-rewrite: false

flang/lib/parser/unparse.cc

index 8bbb5b7..59306ed 100644 (file)
@@ -290,7 +290,7 @@ public:
   void Unparse(const Pass &x) { Word("PASS"), Walk("(", x.v, ")"); }
   void Unparse(const Initialization &x) {  // R743 & R805
     std::visit(
-        common::visitors{[&](const ConstantExpr &y) { Put("{"), Walk(y); },
+        common::visitors{[&](const ConstantExpr &y) { Put(" = "), Walk(y); },
             [&](const NullInit &y) { Put(" => "), Walk(y); },
             [&](const InitialDataTarget &y) { Put(" => "), Walk(y); },
             [&](const std::list<common::Indirection<DataStmtValue>> &y) {