diff options
author | Galina Kistanova <gkistanova@gmail.com> | 2017-06-03 06:25:47 +0000 |
---|---|---|
committer | Galina Kistanova <gkistanova@gmail.com> | 2017-06-03 06:25:47 +0000 |
commit | 39edaaa65c8a87c085075b9804442498168c0fdc (patch) | |
tree | 8e4dcf0a02cb7cd72c305ec84e04135e397a2705 /clang/lib/Lex | |
parent | d321611bfb174a7bf265673c49a661e04c178e09 (diff) | |
download | bcm5719-llvm-39edaaa65c8a87c085075b9804442498168c0fdc.tar.gz bcm5719-llvm-39edaaa65c8a87c085075b9804442498168c0fdc.zip |
Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.
llvm-svn: 304643
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r-- | clang/lib/Lex/Lexer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp index f5a35e97d6e..447ff212f06 100644 --- a/clang/lib/Lex/Lexer.cpp +++ b/clang/lib/Lex/Lexer.cpp @@ -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': |