[clang] c8ecbaa - [clang] Fix assert message
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 18 01:10:58 PST 2022
Author: serge-sans-paille
Date: 2022-11-18T10:10:42+01:00
New Revision: c8ecbaa2eba9de4338642bbfb6efd75b286878cb
URL: https://github.com/llvm/llvm-project/commit/c8ecbaa2eba9de4338642bbfb6efd75b286878cb
DIFF: https://github.com/llvm/llvm-project/commit/c8ecbaa2eba9de4338642bbfb6efd75b286878cb.diff
LOG: [clang] Fix assert message
Added:
Modified:
clang/lib/Lex/Lexer.cpp
Removed:
################################################################################
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index b6ffb85cd2fa6..d45a6fb0a2f84 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -3517,8 +3517,8 @@ bool Lexer::Lex(Token &Result) {
/// that the Flags of result have been cleared before calling this.
bool Lexer::LexTokenInternal(Token &Result, bool TokAtPhysicalStartOfLine) {
LexStart:
- assert(!Result.needsCleaning() && "Result doesn't need cleaning");
- assert(!Result.hasPtrData() && "Result has been reset");
+ assert(!Result.needsCleaning() && "Result needs cleaning");
+ assert(!Result.hasPtrData() && "Result has not been reset");
// CurPtr - Cache BufferPtr in an automatic variable.
const char *CurPtr = BufferPtr;
More information about the cfe-commits
mailing list