Ignore:
Timestamp:
Mar 14, 2025, 2:58:51 PM (7 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
8c2723f
Parents:
e48aca8
Message:

Syncronized getPrintName with mangleName. Ideally there would be some common function to call but I'm not sure where it would go.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/GenPoly/InstantiateGeneric.cpp

    re48aca8 ra21aaff  
    674674// Pretty printing can cause this to become incorrect.
    675675std::string getPrintName( ast::DeclWithType const * decl ) {
    676         return ( decl->linkage.is_mangled )
     676        return ( decl->linkage.is_mangled && decl->mangleName != "" )
    677677                ? decl->scopedMangleName() : decl->name;
    678678}
Note: See TracChangeset for help on using the changeset viewer.