Skip to content

Conversation

@CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Apr 19, 2020

Inline the conditions leading to astGuaranteedToCorrespondToSIL and clean up the logic here to be more const-friendly. Also try to centralize and document the reasons we skip TBD validation.

Inline the conditions for the astGuaranteedToCorrespondToSIL parameter and clean up the logic here to be more const-friendly. Also try to centralize and document the reasons we skip TBD validation.
@CodaFi
Copy link
Contributor Author

CodaFi commented Apr 19, 2020

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 446c6e6

@compnerd
Copy link
Member

@CodaFi Linux has been busted for ~36 hours. Looking to see if #31144 helps

@CodaFi
Copy link
Contributor Author

CodaFi commented Apr 20, 2020

@swift-ci test Linux

Comment on lines +1464 to +1474
const bool diagnoseExtraSymbolsInTBD = [mode]() {
switch (mode) {
case FrontendOptions::TBDValidationMode::None:
llvm_unreachable("Handled Above!");
case FrontendOptions::TBDValidationMode::Default:
case FrontendOptions::TBDValidationMode::MissingFromTBD:
return false;
case FrontendOptions::TBDValidationMode::All:
return true;
}
}();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice construction allowing for a const.

Copy link
Contributor

@davidungar davidungar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@CodaFi
Copy link
Contributor Author

CodaFi commented Apr 20, 2020

@CodaFi CodaFi merged commit db3e9fc into swiftlang:master Apr 20, 2020
@CodaFi CodaFi deleted the TBD-TBD branch April 20, 2020 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants