mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
change to the new llvm::Optional APIs
This is a follow-up of https://github.com/apple/swift/pull/62217
This commit is contained in:
@@ -27,7 +27,7 @@ forEachDependencyUntilTrue(CompilerInstance &CI,
|
||||
llvm::function_ref<bool(StringRef)> callback) {
|
||||
// Check files in the current module. If 'excludeBufferID' is None, exclude
|
||||
// all source files.
|
||||
if (excludeBufferID.hasValue()) {
|
||||
if (excludeBufferID.has_value()) {
|
||||
for (FileUnit *file : CI.getMainModule()->getFiles()) {
|
||||
StringRef filename;
|
||||
if (auto SF = dyn_cast<SourceFile>(file)) {
|
||||
|
||||
Reference in New Issue
Block a user