Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Lvalue.cc

    r1a4bef3 rbf7b6015  
    465465                                        return ret;
    466466                                }
     467                        } else if ( CastExpr * castExpr = dynamic_cast< CastExpr * > ( arg ) ) {
     468                                // need to move cast to pointer type out a level since address of pointer
     469                                // is not valid C code (can be introduced in prior passes, e.g., InstantiateGeneric)
     470                                if ( InitTweak::getPointerBase( castExpr->result ) ) {
     471                                        addrExpr->arg = castExpr->arg;
     472                                        castExpr->arg = addrExpr;
     473                                        castExpr->result = new PointerType( Type::Qualifiers(), castExpr->result );
     474                                        return castExpr;
     475                                }
    467476                        }
    468477                        return addrExpr;
Note: See TracChangeset for help on using the changeset viewer.