Skip to content

Commit d7517cd

Browse files
committed
handle unnecessary switch defaults
1 parent c1f74f9 commit d7517cd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ class AArch64TargetAsmStreamer : public AArch64TargetStreamer {
163163
unsigned VendorID = AArch64BuildAttrs::getVendorID(VendorName);
164164

165165
switch (VendorID) {
166-
default:
167-
assert(0 && "Subsection name error");
168-
break;
169166
case AArch64BuildAttrs::VENDOR_UNKNOWN:
170167
if (unsigned(-1) != Value) {
171168
OS << "\t.aeabi_attribute" << "\t" << Tag << ", " << Value;
@@ -235,8 +232,8 @@ class AArch64TargetAsmStreamer : public AArch64TargetStreamer {
235232
StringRef ParameterStr = getTypeStr(ParameterType);
236233

237234
switch (SubsectionID) {
238-
default: {
239-
// Treated as a private subsection
235+
case AArch64BuildAttrs::VENDOR_UNKNOWN: {
236+
// Private subsection
240237
break;
241238
}
242239
case AArch64BuildAttrs::AEABI_PAUTHABI: {

0 commit comments

Comments
 (0)