summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2017-10-03 01:20:40 +0000
committerFaisal Vali <faisalv@yahoo.com>2017-10-03 01:20:40 +0000
commit675cf03f6eca64a8586370f60b98a942a7bb325d (patch)
treed8f3153ceed8d1d0568952e8ac17cb8c10b2922c
parentb8ece9faa876a9bcb214ab29a49f1cf954187194 (diff)
downloadbcm5719-llvm-675cf03f6eca64a8586370f60b98a942a7bb325d.tar.gz
bcm5719-llvm-675cf03f6eca64a8586370f60b98a942a7bb325d.zip
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
-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