Changes in src/GenPoly/Lvalue.cc [78cdb06:b4f8808]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Lvalue.cc
r78cdb06 rb4f8808 60 60 } 61 61 62 struct ReferenceConversions final : public WithStmtsToAdd , public WithGuards{62 struct ReferenceConversions final : public WithStmtsToAdd { 63 63 Expression * postmutate( CastExpr * castExpr ); 64 64 Expression * postmutate( AddressExpr * addrExpr ); … … 71 71 72 72 struct FixIntrinsicResult final : public WithGuards { 73 enum {74 NoSkip,75 Skip,76 SkipInProgress77 } skip = NoSkip;78 79 void premutate( AsmExpr * ) { GuardValue( skip ); skip = Skip; }80 void premutate( ApplicationExpr * ) { GuardValue( skip ); skip = (skip == Skip) ? SkipInProgress : NoSkip; }81 82 83 73 Expression * postmutate( ApplicationExpr * appExpr ); 84 74 void premutate( FunctionDecl * funcDecl ); … … 172 162 173 163 Expression * FixIntrinsicResult::postmutate( ApplicationExpr * appExpr ) { 174 if ( skip != SkipInProgress &&isIntrinsicReference( appExpr ) ) {164 if ( isIntrinsicReference( appExpr ) ) { 175 165 // eliminate reference types from intrinsic applications - now they return lvalues 176 166 ReferenceType * result = strict_dynamic_cast< ReferenceType * >( appExpr->result );
Note: See TracChangeset
for help on using the changeset viewer.