[clang] b6572ad - [NFC] Add missing 'break' in a switch case

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue May 10 12:48:13 PDT 2022


Author: Erich Keane
Date: 2022-05-10T12:48:08-07:00
New Revision: b6572ad504753c6c27ba49c2ed595a091c977dcd

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

LOG: [NFC] Add missing 'break' in a switch case

Added: 
    

Modified: 
    clang/lib/AST/TypePrinter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/TypePrinter.cpp b/clang/lib/AST/TypePrinter.cpp
index d2feb1c10f06..43183e1e5dd6 100644
--- a/clang/lib/AST/TypePrinter.cpp
+++ b/clang/lib/AST/TypePrinter.cpp
@@ -283,6 +283,7 @@ bool TypePrinter::canPrefixQualifiers(const Type *T,
       // address_space attribute.
       const auto *AttrTy = cast<AttributedType>(UnderlyingType);
       CanPrefixQualifiers = AttrTy->getAttrKind() == attr::AddressSpace;
+      break;
     }
   }
 


        


More information about the cfe-commits mailing list