Skip to content
  • JF Bastien's avatar
    CGDecl::emitStoresForConstant fix synthesized constant's name · 3a881e6b
    JF Bastien authored
    Summary: The name of the synthesized constants for constant initialization was using mangling for statics, which isn't generally correct and (in a yet-uncommitted patch) causes the mangler to assert out because the static ends up trying to mangle function parameters and this makes no sense. Instead, mangle to `"__const." + FunctionName + "." + DeclName`.
    
    Reviewers: rjmccall
    
    Subscribers: dexonsmith, cfe-commits
    
    Differential Revision: https://reviews.llvm.org/D54055
    
    llvm-svn: 346915
    3a881e6b
Loading