]> granicus.if.org Git - clang/commitdiff
Add parens around the boolean condition of one of the added asserts in r314747 ...
authorFaisal Vali <faisalv@yahoo.com>
Tue, 3 Oct 2017 01:33:36 +0000 (01:33 +0000)
committerFaisal Vali <faisalv@yahoo.com>
Tue, 3 Oct 2017 01:33:36 +0000 (01:33 +0000)
  ... in the hopes of teaching the bots the gift of silence ;)

For quick reference: https://reviews.llvm.org/rL314747

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

lib/Lex/TokenLexer.cpp

index f8f9400db90e894f6fc33a4d6be72e28f4fa4241..df6ad5276ac535bd36316f068f36f36f17f016ee 100644 (file)
@@ -531,9 +531,9 @@ bool TokenLexer::pasteTokens(Token &Tok) {
 bool TokenLexer::pasteTokens(Token &LHSTok, ArrayRef<Token> TokenStream,
                              unsigned int &CurIdx) {
   assert(CurIdx > 0 && "## can not be the first token within tokens");
-  assert(TokenStream[CurIdx].is(tok::hashhash) ||
+  assert((TokenStream[CurIdx].is(tok::hashhash) ||
          (PP.getLangOpts().MSVCCompat &&
-          isWideStringLiteralFromMacro(LHSTok, TokenStream[CurIdx])) &&
+          isWideStringLiteralFromMacro(LHSTok, TokenStream[CurIdx]))) &&
              "Token at this Index must be ## or part of the MSVC 'L "
              "#macro-arg' pasting pair");