mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add module trace information for strict memory safety
Extend the module trace format with a field indicating whether a given module, or any module it depends on, was compiled with strict memory safety enabled. This separate output from the compiler can be used as part of an audit to determine what parts of Swift programs are built with strict memory safety checking enabled.
This commit is contained in:
@@ -781,6 +781,7 @@ ModuleDecl::ModuleDecl(Identifier name, ASTContext &ctx,
|
||||
Bits.ModuleDecl.CXXStdlibKind = 0;
|
||||
Bits.ModuleDecl.AllowNonResilientAccess = 0;
|
||||
Bits.ModuleDecl.SerializePackageEnabled = 0;
|
||||
Bits.ModuleDecl.StrictMemorySafety = 0;
|
||||
|
||||
// Populate the module's files.
|
||||
SmallVector<FileUnit *, 2> files;
|
||||
|
||||
Reference in New Issue
Block a user