mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
MSVC: litter the code with llvm_unreachable (NFC)
Add `llvm_unreachable` to mark covered switches which MSVC does not analyze correctly and believes that there exists a path through the function without a return value.
This commit is contained in:
@@ -230,6 +230,7 @@ void SerializedModuleLoaderBase::collectVisibleTopLevelModuleNamesImpl(
|
||||
return None;
|
||||
}
|
||||
}
|
||||
llvm_unreachable("covered switch");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -474,6 +475,7 @@ SerializedModuleLoaderBase::findModule(AccessPathElem moduleID,
|
||||
return findTargetSpecificModuleFiles();
|
||||
}
|
||||
}
|
||||
llvm_unreachable("covered switch");
|
||||
});
|
||||
return result.getValueOr(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user