Skip to content

Commit c5bfa45

Browse files
author
Sasha Krassovsky
committed
Fix warnings in Basic
1 parent 1e414f7 commit c5bfa45

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/Basic/FileSystem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ std::error_code swift::moveFileIfDifferent(const llvm::Twine &source,
257257
// Files are different; overwrite the destination file.
258258
return fs::rename(source, destination);
259259
}
260+
llvm_unreachable("Unhandled FileDifference in switch");
260261
}
261262

262263
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>

lib/Basic/LangOptions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ ArrayRef<StringRef> getSupportedConditionalCompilationValues(const PlatformCondi
8686
case PlatformConditionKind::TargetEnvironment:
8787
return SupportedConditionalCompilationTargetEnvironments;
8888
}
89+
llvm_unreachable("Unhandled PlatformConditionKind in switch");
8990
}
9091

9192
PlatformConditionKind suggestedPlatformConditionKind(PlatformConditionKind Kind, const StringRef &V,

0 commit comments

Comments
 (0)