diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index bdedfad3b78ba..7bb487d020ea6 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -213,7 +213,7 @@ void UnwrappedLineParser::parse() { } // Create line with eof token. - assert(FormatTok->is(tok::eof)); + assert(eof()); pushToken(FormatTok); addUnwrappedLine();