Ignore:
Timestamp:
Feb 25, 2026, 1:39:58 AM (2 days ago)
Author:
Matthew Au-Yeung <mw2auyeu@…>
Branches:
stuck-waitfor-destruct
Parents:
44940ee
Message:

update comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/Autogen.cpp

    r44940ee r88bb0b4  
    404404        ast::FunctionDecl * decl = genProto( "^?{}", { dst }, {} );
    405405        // 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.
    410408        if ( isConcurrentType() ) {
    411409                auto mut = ast::mutate( decl );
Note: See TracChangeset for help on using the changeset viewer.