Changeset 949339b for src/Concurrency/Keywords.cc
- Timestamp:
- Sep 27, 2021, 2:09:55 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- cc287800
- Parents:
- 4e28d2e9 (diff), 056cbdb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/Concurrency/Keywords.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
r4e28d2e9 r949339b 1200 1200 new PointerType( 1201 1201 noQualifiers, 1202 new TypeofType( noQualifiers, args.front()->clone() ) 1202 //new TypeofType( noQualifiers, args.front()->clone() ) 1203 new TypeofType( noQualifiers, new UntypedExpr( 1204 new NameExpr( "__get_type" ), 1205 { args.front()->clone() } 1206 ) 1207 ) 1203 1208 ), 1204 1209 new ConstantExpr( Constant::from_ulong( args.size() ) ), … … 1209 1214 map_range < std::list<Initializer*> > ( args, [](Expression * var ){ 1210 1215 return new SingleInit( new UntypedExpr( 1211 new NameExpr( "__get_pointer" ),1212 { var }1216 new NameExpr( "__get_ptr" ), 1217 { var } 1213 1218 ) ); 1219 //return new SingleInit( new AddressExpr( var ) ); 1214 1220 }) 1215 1221 ) … … 1217 1223 1218 1224 StructInstType * lock_guard_struct = new StructInstType( noQualifiers, lock_guard_decl ); 1219 TypeExpr * lock_type_expr = new TypeExpr( new TypeofType( noQualifiers, args.front()->clone() ) ); 1225 TypeExpr * lock_type_expr = new TypeExpr( 1226 new TypeofType( noQualifiers, new UntypedExpr( 1227 new NameExpr( "__get_type" ), 1228 { args.front()->clone() } 1229 ) 1230 ) 1231 ); 1220 1232 1221 1233 lock_guard_struct->parameters.push_back( lock_type_expr ) ;
Note:
See TracChangeset
for help on using the changeset viewer.