Changeset 88bb0b4 for src/Validate/Autogen.cpp
- Timestamp:
- Feb 25, 2026, 1:39:58 AM (2 days ago)
- Branches:
- stuck-waitfor-destruct
- Parents:
- 44940ee
- File:
-
- 1 edited
-
src/Validate/Autogen.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/Autogen.cpp
r44940ee r88bb0b4 404 404 ast::FunctionDecl * decl = genProto( "^?{}", { dst }, {} ); 405 405 // For concurrent types, remove static storage and inline specifier, and add 406 // cfa_linkonce attribute so the destructor has external linkage with linkonce 407 // semantics. This is required for waitfor to work correctly across translation 408 // units - the function pointer must be the same everywhere, and cfa_linkonce 409 // ensures only one definition survives linking. 406 // cfa_linkonce attribute so the destructor has linkonce semantics. 407 // This is required to share the same function pointer across TUs. 410 408 if ( isConcurrentType() ) { 411 409 auto mut = ast::mutate( decl );
Note:
See TracChangeset
for help on using the changeset viewer.