diff options
| author | Galina Kistanova <gkistanova@gmail.com> | 2017-06-01 21:21:49 +0000 | 
|---|---|---|
| committer | Galina Kistanova <gkistanova@gmail.com> | 2017-06-01 21:21:49 +0000 | 
| commit | 6ef911c41763c81b01aa1caa335393b4c4472206 (patch) | |
| tree | 3799538b364ebc7616235a81569b749739e2741f /clang/lib/Parse | |
| parent | 5ea2d55e1c138cb04f87993dfdfe3f1edeb96e1f (diff) | |
| download | bcm5719-llvm-6ef911c41763c81b01aa1caa335393b4c4472206.tar.gz bcm5719-llvm-6ef911c41763c81b01aa1caa335393b4c4472206.zip  | |
Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.
llvm-svn: 304475
Diffstat (limited to 'clang/lib/Parse')
| -rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index c739a50f0b3..aacb00e8be6 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -1314,6 +1314,7 @@ ExprResult Parser::ParseCastExpression(bool isUnaryExpression,      }      // Fall through to treat the template-id as an id-expression. +    LLVM_FALLTHROUGH;    }    case tok::kw_operator: // [C++] id-expression: operator/conversion-function-id @@ -1484,9 +1485,9 @@ Parser::ParsePostfixExpressionSuffix(ExprResult LHS) {                                               nullptr, LHS.get());          break;        } -                // Fall through; this isn't a message send. -                 +      LLVM_FALLTHROUGH; +      default:  // Not a postfix-expression suffix.        return LHS;      case tok::l_square: {  // postfix-expression: p-e '[' expression ']'  | 

