Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    rd76c588 r4d2d45f9  
    2828#include "Alternative.h"           // for AltList, Alternative
    2929#include "AlternativeFinder.h"
    30 #include "AST/Expr.hpp"
    31 #include "AST/Type.hpp"
    3230#include "Common/SemanticError.h"  // for SemanticError
    3331#include "Common/utility.h"        // for deleteAll, printAll, CodeLocation
     
    224222                        cost.incReference();
    225223                }
    226         }
    227 
    228         const ast::Expr * referenceToRvalueConversion( const ast::Expr * expr, Cost & cost ) {
    229                 if ( expr->result.as< ast::ReferenceType >() ) {
    230                         // cast away reference from expr
    231                         cost.incReference();
    232                         return new ast::CastExpr{ expr->location, expr, expr->result->stripReferences() };
    233                 }
    234                
    235                 return expr;
    236224        }
    237225
Note: See TracChangeset for help on using the changeset viewer.