[clang] 437727d - [AST] Add 'break; ' to the last case in two switches. NFC
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 22 13:42:56 PST 2023
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;
}
}
More information about the cfe-commits
mailing list