]> granicus.if.org Git - clang/commitdiff
Remove an assertion I added from the refactoring of pasteTokens (https://reviews...
authorFaisal Vali <faisalv@yahoo.com>
Tue, 3 Oct 2017 01:20:40 +0000 (01:20 +0000)
committerFaisal Vali <faisalv@yahoo.com>
Tue, 3 Oct 2017 01:20:40 +0000 (01:20 +0000)
  - 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!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314748 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/TokenLexer.cpp

index 18211ff25b37d1c1f9a63eabdfa5d48e72d13e40..f8f9400db90e894f6fc33a4d6be72e28f4fa4241 100644 (file)
@@ -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.