Changeset c2cf2d0 for src/AST


Ignore:
Timestamp:
Jul 5, 2024, 11:43:23 AM (13 days ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
550afde2
Parents:
8c55d34
Message:

Made string literals constants. Preformed required updates. Resisted preforming large refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.cpp

    r8c55d34 rc2cf2d0  
    261261
    262262ConstantExpr * ConstantExpr::from_string( const CodeLocation & loc, const std::string & str ) {
    263         const Type * charType = new BasicType( BasicKind::Char );
     263        const Type * charType = new BasicType( BasicKind::Char, ast::CV::Const );
    264264        // Adjust the length of the string for the terminator.
    265265        const Expr * strSize = from_ulong( loc, str.size() + 1 );
Note: See TracChangeset for help on using the changeset viewer.