Changeset c2cf2d0 for src/Validate/ImplementEnumFunc.cpp
- Timestamp:
- Jul 5, 2024, 11:43:23 AM (5 months ago)
- Branches:
- master
- Children:
- 550afde2
- Parents:
- 8c55d34
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/ImplementEnumFunc.cpp
r8c55d34 rc2cf2d0 187 187 {new ast::ObjectDecl( 188 188 getLocation(), "_ret", 189 new ast::PointerType(new ast::BasicType{ast::BasicKind::Char}))}); 189 new ast::PointerType( 190 new ast::BasicType(ast::BasicKind::Char, ast::CV::Const)))}); 190 191 } 191 192 … … 231 232 {new ast::ObjectDecl( 232 233 getLocation(), "_ret", 233 new ast::PointerType(new ast::BasicType{ast::BasicKind::Char}))}); 234 new ast::PointerType( 235 new ast::BasicType(ast::BasicKind::Char, ast::CV::Const)))}); 234 236 } 235 237 … … 343 345 attr == ast::EnumAttribute::Value 344 346 ? decl->base 345 : new ast::PointerType(new ast::BasicType{ast::BasicKind::Char}), 347 : new ast::PointerType( 348 new ast::BasicType(ast::BasicKind::Char, ast::CV::Const)), 346 349 ast::ConstantExpr::from_int(decl->location, decl->members.size()), 347 350 ast::LengthFlag::FixedLen, ast::DimensionFlag::DynamicDim);
Note: See TracChangeset
for help on using the changeset viewer.