summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/TokenLexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Lex/TokenLexer.cpp')
-rw-r--r--clang/lib/Lex/TokenLexer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Lex/TokenLexer.cpp b/clang/lib/Lex/TokenLexer.cpp
index 18211ff25b3..f8f9400db90 100644
--- a/clang/lib/Lex/TokenLexer.cpp
+++ b/clang/lib/Lex/TokenLexer.cpp
@@ -537,10 +537,6 @@ bool TokenLexer::pasteTokens(Token &LHSTok, ArrayRef<Token> TokenStream,
"Token at this Index must be ## or part of the MSVC 'L "
"#macro-arg' pasting pair");
- assert(std::is_trivial<Token>::value &&
- !std::memcmp(&LHSTok, &TokenStream[CurIdx - 1], sizeof(Token)) &&
- "LHSTok must equal the token preceding the hashhash");
-
// MSVC: If previous token was pasted, this must be a recovery from an invalid
// paste operation. Ignore spaces before this token to mimic MSVC output.
// Required for generating valid UUID strings in some MS headers.
OpenPOWER on IntegriCloud