Changeset 70a1c3ae for src/SymTab
- Timestamp:
- Jan 29, 2019, 4:09:59 PM (7 years ago)
- Branches:
- no_list
- Children:
- bee0694
- Parents:
- ede87c6
- Location:
- src/SymTab
- Files:
-
- 2 edited
-
Autogen.cc (modified) (2 diffs)
-
Validate.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Autogen.cc
rede87c6 r70a1c3ae 264 264 LinkageSpec::Spec spec = isIntrinsic ? LinkageSpec::Intrinsic : LinkageSpec::AutoGen; 265 265 FunctionDecl * decl = new FunctionDecl( fname, scs, spec, ftype, new CompoundStmt(), 266 std:: list< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) );266 std::vector< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) ); 267 267 decl->fixUniqueId(); 268 268 return decl; … … 692 692 TypeInstType * inst = new TypeInstType( Type::Qualifiers(), newDecl->get_name(), newDecl ); 693 693 newDecl->get_assertions().push_back( new FunctionDecl( "?=?", Type::StorageClasses(), LinkageSpec::Cforall, genAssignType( inst ), nullptr, 694 std:: list< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) ) );694 std::vector< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) ) ); 695 695 newDecl->get_assertions().push_back( new FunctionDecl( "?{}", Type::StorageClasses(), LinkageSpec::Cforall, genDefaultType( inst ), nullptr, 696 std:: list< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) ) );696 std::vector< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) ) ); 697 697 newDecl->get_assertions().push_back( new FunctionDecl( "?{}", Type::StorageClasses(), LinkageSpec::Cforall, genCopyType( inst ), nullptr, 698 std:: list< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) ) );698 std::vector< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) ) ); 699 699 newDecl->get_assertions().push_back( new FunctionDecl( "^?{}", Type::StorageClasses(), LinkageSpec::Cforall, genDefaultType( inst ), nullptr, 700 std:: list< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) ) );700 std::vector< Attribute * >(), Type::FuncSpecifiers( Type::Inline ) ) ); 701 701 typeParams.push_back( newDecl ); 702 702 done.insert( ty->get_baseType() ); -
src/SymTab/Validate.cc
rede87c6 r70a1c3ae 912 912 // attributes are not carried over from typedef to function parameters/return values 913 913 if ( ! inFunctionType ) { 914 ret->attributes. splice( ret->attributes.end(), typeInst->attributes);914 ret->attributes.insert( ret->attributes.end(), typeInst->attributes.begin(), typeInst->attributes.end() ); 915 915 } else { 916 916 deleteAll( ret->attributes );
Note:
See TracChangeset
for help on using the changeset viewer.