forked from OSchip/llvm-project
[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:
parent
5b25aad67c
commit
1732d043e2
|
@ -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));
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue