Changes in src/GenPoly/Lvalue.cpp [00f89a6:b6f2e7ab]
- File:
-
- 1 edited
-
src/GenPoly/Lvalue.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Lvalue.cpp
r00f89a6 rb6f2e7ab 316 316 Warning::RvalueToReferenceConversion, toCString( expr->arg ) ); 317 317 318 319 // allowing conversion in the rvalue to const ref case320 // use the referenced-to type to create temp variables321 ast::Type const * targetType = dstType;322 for (int i = 0; i < diff; ++i) targetType = (strict_dynamic_cast<ast::ReferenceType const *>(targetType))->base;323 324 318 static UniqueName tmpNamer( "__ref_tmp_" ); 325 319 ast::ObjectDecl * tmp = new ast::ObjectDecl( expr->arg->location, 326 320 tmpNamer.newName(), 327 // ast::deepCopy( expr->arg->result ), 328 ast::deepCopy (targetType), 321 ast::deepCopy( expr->arg->result ), 329 322 new ast::SingleInit( expr->arg->location, expr->arg ) ); 330 323 PRINT( std::cerr << "make tmp: " << tmp << std::endl; )
Note:
See TracChangeset
for help on using the changeset viewer.