[clang] 18212cb - Remove duplicate/unreachable break (PR47029)

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 7 03:49:20 PDT 2020


Author: Simon Pilgrim
Date: 2020-08-07T11:48:48+01:00
New Revision: 18212cbcdadd130e5b2d1bc2bb38e4396ef8a46f

URL: https://github.com/llvm/llvm-project/commit/18212cbcdadd130e5b2d1bc2bb38e4396ef8a46f
DIFF: https://github.com/llvm/llvm-project/commit/18212cbcdadd130e5b2d1bc2bb38e4396ef8a46f.diff

LOG: Remove duplicate/unreachable break (PR47029)

Added: 
    

Modified: 
    clang/lib/Sema/SemaType.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaType.cpp b/clang/lib/Sema/SemaType.cpp
index ff5223c0795e..b2be31ac0990 100644
--- a/clang/lib/Sema/SemaType.cpp
+++ b/clang/lib/Sema/SemaType.cpp
@@ -1543,7 +1543,8 @@ static QualType ConvertDeclSpecToType(TypeProcessingState &state) {
         << "__float128";
     Result = Context.Float128Ty;
     break;
-  case DeclSpec::TST_bool: Result = Context.BoolTy; break; // _Bool or bool
+  case DeclSpec::TST_bool:
+    Result = Context.BoolTy; // _Bool or bool
     break;
   case DeclSpec::TST_decimal32:    // _Decimal32
   case DeclSpec::TST_decimal64:    // _Decimal64


        


More information about the cfe-commits mailing list