aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keith <tkeith@nvidia.com>2020-10-02 13:08:49 -0700
committerTim Keith <tkeith@nvidia.com>2020-10-02 13:08:51 -0700
commit11622d0fed8c1fb99124ebf4a6aece4bcc83b367 (patch)
treecc37216bff8e8fe37ebf031b542da4a2e4739fbf
parent128e999d63c41e54d5d73c8af47e1ce401e6a200 (diff)
downloadllvm-11622d0fed8c1fb99124ebf4a6aece4bcc83b367.zip
llvm-11622d0fed8c1fb99124ebf4a6aece4bcc83b367.tar.gz
llvm-11622d0fed8c1fb99124ebf4a6aece4bcc83b367.tar.bz2
[flang][NFC] Fix mis-matched struct/class declarations
The template `ListDirectedStatementState` was declared as a struct and then as a class. Fix it so they match. Differential Revision: https://reviews.llvm.org/D88711
-rw-r--r--flang/runtime/io-stmt.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/flang/runtime/io-stmt.h b/flang/runtime/io-stmt.h
index b5d3caf..686cc0f 100644
--- a/flang/runtime/io-stmt.h
+++ b/flang/runtime/io-stmt.h
@@ -149,10 +149,11 @@ struct IoStatementBase : public DefaultFormatControlCallbacks {
};
// Common state for list-directed internal & external I/O
-template <Direction> struct ListDirectedStatementState;
+template <Direction> class ListDirectedStatementState;
template <>
-struct ListDirectedStatementState<Direction::Output>
+class ListDirectedStatementState<Direction::Output>
: public FormattedIoStatementState {
+public:
static std::size_t RemainingSpaceInRecord(const ConnectionState &);
bool NeedAdvance(const ConnectionState &, std::size_t) const;
bool EmitLeadingSpaceOrAdvance(