From 675cf03f6eca64a8586370f60b98a942a7bb325d Mon Sep 17 00:00:00 2001 From: Faisal Vali Date: Tue, 3 Oct 2017 01:20:40 +0000 Subject: Remove an assertion I added from the refactoring of pasteTokens (https://reviews.llvm.org/rL314747). - it made the bots v angry! I'm not exactly sure why the assertion doesn't hold - if anyone has any insight - would appreciate it. Thanks! llvm-svn: 314748 --- clang/lib/Lex/TokenLexer.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'clang') 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 TokenStream, "Token at this Index must be ## or part of the MSVC 'L " "#macro-arg' pasting pair"); - assert(std::is_trivial::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. -- cgit v1.2.3