Changeset 299bd989 for src/ControlStruct
- Timestamp:
- Jan 10, 2025, 3:40:21 PM (8 months ago)
- Branches:
- master
- Children:
- c44f1f9
- Parents:
- d6c59bce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/ExceptDecl.cpp
rd6c59bce r299bd989 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ExceptDecl.cpp -- 7 // ExceptDecl.cpp -- Translate "exception" and exception related declarations. 8 8 // 9 9 // Author : Andrew Beach 10 10 // Created On : Tue Jul 12 15:50:00 2022 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Sat Sep 7 12:05:55 202413 // Update Count : 111 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Jan 10 15:35:55 2024 13 // Update Count : 2 14 14 // 15 15 … … 117 117 decl->body = true; 118 118 for ( ast::ptr<ast::TypeDecl> const & param : forallClause ) { 119 decl->params.push_back( ast::deepCopy( param ) ); 119 // Create an unsized and assertionless copy of the parameter. 120 decl->params.push_back( new ast::TypeDecl( 121 param->location, 122 param->name, 123 param->storage, 124 param->base ? ast::deepCopy( param->base ) : nullptr, 125 ast::TypeDecl::Dtype, 126 false, 127 nullptr 128 ) ); 120 129 } 121 130 return decl;
Note:
See TracChangeset
for help on using the changeset viewer.