瀏覽代碼

Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304648 91177308-0d34-0410-b5e6-96231b3b80d8
Galina Kistanova 8 年之前
父節點
當前提交
cb78c69aad
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/Edit/RewriteObjCFoundationAPI.cpp

+ 4 - 0
lib/Edit/RewriteObjCFoundationAPI.cpp

@@ -798,24 +798,28 @@ static bool rewriteToNumberLiteral(const ObjCMessageExpr *Msg,
   case NSAPI::NSNumberWithUnsignedInt:
   case NSAPI::NSNumberWithUnsignedInt:
   case NSAPI::NSNumberWithUnsignedInteger:
   case NSAPI::NSNumberWithUnsignedInteger:
     CallIsUnsigned = true;
     CallIsUnsigned = true;
+    LLVM_FALLTHROUGH;
   case NSAPI::NSNumberWithInt:
   case NSAPI::NSNumberWithInt:
   case NSAPI::NSNumberWithInteger:
   case NSAPI::NSNumberWithInteger:
     break;
     break;
 
 
   case NSAPI::NSNumberWithUnsignedLong:
   case NSAPI::NSNumberWithUnsignedLong:
     CallIsUnsigned = true;
     CallIsUnsigned = true;
+    LLVM_FALLTHROUGH;
   case NSAPI::NSNumberWithLong:
   case NSAPI::NSNumberWithLong:
     CallIsLong = true;
     CallIsLong = true;
     break;
     break;
 
 
   case NSAPI::NSNumberWithUnsignedLongLong:
   case NSAPI::NSNumberWithUnsignedLongLong:
     CallIsUnsigned = true;
     CallIsUnsigned = true;
+    LLVM_FALLTHROUGH;
   case NSAPI::NSNumberWithLongLong:
   case NSAPI::NSNumberWithLongLong:
     CallIsLongLong = true;
     CallIsLongLong = true;
     break;
     break;
 
 
   case NSAPI::NSNumberWithDouble:
   case NSAPI::NSNumberWithDouble:
     CallIsDouble = true;
     CallIsDouble = true;
+    LLVM_FALLTHROUGH;
   case NSAPI::NSNumberWithFloat:
   case NSAPI::NSNumberWithFloat:
     CallIsFloating = true;
     CallIsFloating = true;
     break;
     break;