]> granicus.if.org Git - clang/commitdiff
Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.
authorGalina Kistanova <gkistanova@gmail.com>
Sat, 3 Jun 2017 06:25:47 +0000 (06:25 +0000)
committerGalina Kistanova <gkistanova@gmail.com>
Sat, 3 Jun 2017 06:25:47 +0000 (06:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304643 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/Lexer.cpp

index f5a35e97d6e1cef761e8c11b62a1313082402fe1..447ff212f06e1fabcb5a4defdc6d887e88efe1a7 100644 (file)
@@ -2498,6 +2498,7 @@ void Lexer::ReadToEndOfLine(SmallVectorImpl<char> *Result) {
         break;
       }
       // FALL THROUGH.
+      LLVM_FALLTHROUGH;
     case '\r':
     case '\n':
       // Okay, we found the end of the line. First, back up past the \0, \r, \n.
@@ -3247,6 +3248,7 @@ LexNextToken:
       return LexCharConstant(Result, ConsumeChar(CurPtr, SizeTmp, Result),
                              tok::wide_char_constant);
     // FALL THROUGH, treating L like the start of an identifier.
+    LLVM_FALLTHROUGH;
 
   // C99 6.4.2: Identifiers.
   case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G':