Skip to content

Commit 4ae33c5

Browse files
committed
Fix MSVC "switch statement contains 'default' but no 'case' labels" warning. NFC.
1 parent db08060 commit 4ae33c5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

clang/lib/Sema/SemaOpenACC.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ bool diagnoseConstructAppertainment(SemaOpenACC &S, OpenACCDirectiveKind K,
3939

4040
bool doesClauseApplyToDirective(OpenACCDirectiveKind DirectiveKind,
4141
OpenACCClauseKind ClauseKind) {
42-
switch (ClauseKind) {
43-
// FIXME: For each clause as we implement them, we can add the
44-
// 'legalization' list here.
45-
default:
46-
// Do nothing so we can go to the 'unimplemented' diagnostic instead.
47-
return true;
48-
}
49-
llvm_unreachable("Invalid clause kind");
42+
// FIXME: For each clause as we implement them, we can add the
43+
// 'legalization' list here.
44+
45+
// Do nothing so we can go to the 'unimplemented' diagnostic instead.
46+
return true;
5047
}
5148
} // namespace
5249

0 commit comments

Comments
 (0)