[flang] Fix clang build warning in mod-file.cc

Original-commit: flang-compiler/f18@53ad3bd59c
Reviewed-on: https://github.com/flang-compiler/f18/pull/130
Tree-same-pre-rewrite: false
This commit is contained in:
peter klausler 2018-07-17 12:51:54 -07:00
parent 5b25aad67c
commit 1732d043e2
2 changed files with 2 additions and 2 deletions

View File

@ -1475,7 +1475,7 @@ public:
x.u);
}
void Before(const SubmoduleStmt &x) { // R1417
Word("SUBMODULE "), WalkTupleElements(x.t, ")"), Indent();
Word("SUBMODULE ("), WalkTupleElements(x.t, ")"), Indent();
}
void Unparse(const ParentIdentifier &x) { // R1418
Walk(std::get<Name>(x.t)), Walk(":", std::get<std::optional<Name>>(x.t));

View File

@ -114,7 +114,7 @@ bool ModFileWriter::WriteOne(const Symbol &modSymbol) {
std::string path{dir_ + '/' + name + extension};
std::ofstream os{path};
PutSymbols(*modSymbol.scope());
std::string all{std::move(GetAsString(name))};
std::string all{GetAsString(name)};
auto header{GetHeader(all)};
os << header << all;
os.close();