Skip to content

Commit fe436ed

Browse files
committed
NFC: Fix a warning in Attr.cpp
1 parent aac6d97 commit fe436ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/AST/Attr.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,9 +1300,8 @@ StringRef DeclAttribute::getAttrName() const {
13001300
return "exclusivity(checked)";
13011301
case ExclusivityAttr::Unchecked:
13021302
return "exclusivity(unchecked)";
1303-
default:
1304-
llvm_unreachable("Invalid optimization kind");
13051303
}
1304+
llvm_unreachable("Invalid optimization kind");
13061305
}
13071306
case DAK_Effects:
13081307
switch (cast<EffectsAttr>(this)->getKind()) {

0 commit comments

Comments
 (0)