Author: Craig Topper
Date: 2023-02-22T13:42:40-08:00
New Revision: 437727d5865af01cf1c901eff931f5113008831c

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

LOG: [AST] Add 'break;' to the last case in two switches. NFC

Makes it easier for the switch to be extended in the future.

Added: 
    

Modified: 
    clang/lib/AST/TypePrinter.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/TypePrinter.cpp b/clang/lib/AST/TypePrinter.cpp
index ed3837ef01d8..4bd45768395a 100644
--- a/clang/lib/AST/TypePrinter.cpp
+++ b/clang/lib/AST/TypePrinter.cpp
@@ -692,6 +692,7 @@ void TypePrinter::printVectorBefore(const VectorType *T, 
raw_ostream &OS) {
     // Multiply by 8 for the number of bits.
     OS << ") * 8))) ";
     printBefore(T->getElementType(), OS);
+    break;
   }
 }
 
@@ -757,6 +758,7 @@ void TypePrinter::printDependentVectorBefore(
     }
     OS << "))) ";
     printBefore(T->getElementType(), OS);
+    break;
   }
 }
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to