mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Added assertion for single primary to shouldTreatAsSIL
This commit is contained in:
@@ -48,8 +48,11 @@ bool FrontendInputs::shouldTreatAsSIL() const {
|
||||
unsigned silPrimaryCount = numberOfPrimaryInputsEndingWith(SIL_EXTENSION);
|
||||
if (silPrimaryCount == 0)
|
||||
return false;
|
||||
if (silPrimaryCount == primaryInputCount())
|
||||
if (silPrimaryCount == primaryInputCount()) {
|
||||
// Not clear what to do someday with multiple primaries
|
||||
assertMustNotBeMoreThanOnePrimaryInput();
|
||||
return true;
|
||||
}
|
||||
llvm_unreachable("Either all primaries or none must end with .sil");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user