Skip to content

Commit ec40027

Browse files
committed
Fix MSVC "not all control paths return a value" warning. NFCI.
1 parent 679b2f7 commit ec40027

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Driver/ToolChains/Darwin.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1932,6 +1932,7 @@ struct DarwinPlatform {
19321932
case DarwinPlatformKind::XROS:
19331933
return llvm::Triple::XROS;
19341934
}
1935+
llvm_unreachable("Unknown DarwinPlatformKind enum");
19351936
}
19361937

19371938
SourceKind Kind;

0 commit comments

Comments
 (0)