We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2442737 commit 7ea0723Copy full SHA for 7ea0723
lib/Sema/TypeCheckSwitchStmt.cpp
@@ -828,8 +828,8 @@ namespace {
828
auto children = E->getAllElements();
829
llvm::transform(
830
children, std::back_inserter(arr), [&](EnumElementDecl *eed) {
831
- // Don't force people to match unavailable cases; they can't
832
- // even write them.
+ // Don't force people to match unavailable cases since they
+ // should not be instantiated at run time.
833
if (AvailableAttr::isUnavailable(eed)) {
834
return Space();
835
}
0 commit comments