Changes in src/Concurrency/Keywords.cc [a8367eb:5b7c8b5]
- File:
-
- 1 edited
-
src/Concurrency/Keywords.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
ra8367eb r5b7c8b5 1200 1200 new PointerType( 1201 1201 noQualifiers, 1202 //new TypeofType( noQualifiers, args.front()->clone() ) 1203 new TypeofType( noQualifiers, new UntypedExpr( 1204 new NameExpr( "__get_type" ), 1205 { args.front()->clone() } 1206 ) 1207 ) 1202 new TypeofType( noQualifiers, args.front()->clone() ) 1208 1203 ), 1209 1204 new ConstantExpr( Constant::from_ulong( args.size() ) ), … … 1214 1209 map_range < std::list<Initializer*> > ( args, [](Expression * var ){ 1215 1210 return new SingleInit( new UntypedExpr( 1216 new NameExpr( "__get_ptr" ),1217 { var }1211 new NameExpr( "__get_pointer" ), 1212 { var } 1218 1213 ) ); 1219 //return new SingleInit( new AddressExpr( var ) );1220 1214 }) 1221 1215 ) … … 1223 1217 1224 1218 StructInstType * lock_guard_struct = new StructInstType( noQualifiers, lock_guard_decl ); 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 ); 1219 TypeExpr * lock_type_expr = new TypeExpr( new TypeofType( noQualifiers, args.front()->clone() ) ); 1232 1220 1233 1221 lock_guard_struct->parameters.push_back( lock_type_expr ) ;
Note:
See TracChangeset
for help on using the changeset viewer.