Skip to content

Conversation

@augusto2112
Copy link

Since we can't turn on automatic module verification (due to it crashing the process if verification fails), call llvm::verifyModule every time after we create or mutate it.

rdar://154876866

Since we can't turn on automatic module verification (due to it crashing
the process if verification fails), call llvm::verifyModule every time
after we create or mutate it.

rdar://154876866
@augusto2112 augusto2112 requested a review from a team as a code owner December 4, 2025 00:56
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

@swift-ci test macOS

@augusto2112
Copy link
Author

@swift-ci test macos

if (llvm::verifyModule(module, &MsgsOS)) {
LLDB_LOG(log, "IRGeneration failed with error: {0}", Error);
diagnostic_manager.AddDiagnostic(
"The expression could not be compiled",

Choose a reason for hiding this comment

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

Can you add something like "LLVM verification error" to it?

@adrian-prantl adrian-prantl merged commit e42ff7c into swiftlang:swift/release/6.3 Dec 4, 2025
3 checks passed
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