diff options
Diffstat (limited to 'lib/Format/UnwrappedLineParser.cpp')
-rw-r--r-- | lib/Format/UnwrappedLineParser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index 70f33ad031..4066b55ecb 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp @@ -41,8 +41,9 @@ public: } virtual FormatToken getNextToken() { - // FIXME: Write test that breaks due to a missing - // if (eof()) return createEOF(); + // The \c UnwrappedLineParser guards against this by never calling + // \c getNextToken() after it has encountered the first eof token. + assert(!eof()); Token = PreviousTokenSource->getNextToken(); if (eof()) return createEOF(); |