Skip to content

[lldb] Pass requiresRevisionMatch argument to validateSerializedAST #5545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

kastiglione
Copy link

@kastiglione kastiglione commented Nov 2, 2022

Pass requiresRevisionMatch argument to validateSerializedAST after it was introduced in Swift: swiftlang/swift#61628

@kastiglione
Copy link
Author

A -Wpointer-bool-conversion warning identified this issue:

Address of 'extended_validation_info' will always evaluate to 'true'

@kastiglione
Copy link
Author

@swift-ci test

@@ -1078,7 +1078,8 @@ static bool DeserializeAllCompilerFlags(swift::CompilerInvocation &invocation,
swift::serialization::ExtendedValidationInfo extended_validation_info;
info = swift::serialization::validateSerializedAST(
buf, invocation.getSILOptions().EnableOSSAModules,
/*requiredSDK*/StringRef(), &extended_validation_info);
/*requiredSDK*/ StringRef(), /*requiresRevisionMatch*/ false,
Copy link
Author

Choose a reason for hiding this comment

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

@adrian-prantl I assume false is what we want here

Choose a reason for hiding this comment

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

Very good! Thanks

@@ -1078,7 +1078,8 @@ static bool DeserializeAllCompilerFlags(swift::CompilerInvocation &invocation,
swift::serialization::ExtendedValidationInfo extended_validation_info;
info = swift::serialization::validateSerializedAST(
buf, invocation.getSILOptions().EnableOSSAModules,
/*requiredSDK*/StringRef(), &extended_validation_info);
/*requiredSDK*/ StringRef(), /*requiresRevisionMatch*/ false,

Choose a reason for hiding this comment

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

Very good! Thanks

@kastiglione kastiglione merged commit 1bfddbc into stable/20220421 Nov 7, 2022
@kastiglione kastiglione deleted the dl/lldb-pass-requiresrevisionmatch-argument-to-validateserializedast branch November 7, 2022 17:35
adrian-prantl pushed a commit that referenced this pull request Dec 2, 2022
…5545)

Pass `requiresRevisionMatch` argument  to `validateSerializedAST` after it was introduced in Swift: swiftlang/swift#61628

(cherry picked from commit 1bfddbc)
adrian-prantl pushed a commit to adrian-prantl/llvm-project that referenced this pull request Dec 2, 2022
…wiftlang#5545)

Pass `requiresRevisionMatch` argument  to `validateSerializedAST` after it was introduced in Swift: swiftlang/swift#61628

(cherry picked from commit 1bfddbc)
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.

2 participants