Ignore:
Timestamp:
Aug 15, 2017, 7:00:40 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
f6582243
Parents:
db67b11
Message:

Minor cleanup, debug statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    rdb67b11 rc93bc28  
    241241        void AlternativeFinder::addAggMembers( StructOrUnionType *aggInst, Expression *expr, const Cost &newCost, const TypeEnvironment & env, Expression * member ) {
    242242                // by this point, member must be a name expr
    243                 NameExpr * nameExpr = safe_dynamic_cast< NameExpr * >( member );
     243                NameExpr * nameExpr = dynamic_cast< NameExpr * >( member );
     244                if ( ! nameExpr ) return;
    244245                const std::string & name = nameExpr->get_name();
    245246                std::list< Declaration* > members;
     
    263264                        // during parsing and reusing that information here.
    264265                        std::stringstream ss( constantExpr->get_constant()->get_value() );
    265                         int val;
     266                        int val = 0;
    266267                        std::string tmp;
    267268                        if ( ss >> val && ! (ss >> tmp) ) {
Note: See TracChangeset for help on using the changeset viewer.