Changeset aaa1a99a


Ignore:
Timestamp:
Jan 12, 2017, 3:33:24 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
4d3cba50
Parents:
13de47bc
Message:

Fixed copy paste error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/FixNames.cc

    r13de47bc raaa1a99a  
    120120                        int nargs = functionDecl->get_functionType()->get_parameters().size();
    121121                        if( !(nargs == 0 || nargs == 2 || nargs == 3) ) {
    122                                 throw SemanticError("Main expected to have 0, 2 or 3 arguments\n", main_signature.get());
     122                                throw SemanticError("Main expected to have 0, 2 or 3 arguments\n", functionDecl);
    123123                        }
    124124                        functionDecl->get_statements()->get_kids().push_back( new ReturnStmt( noLabels, new ConstantExpr( Constant( new BasicType( Type::Qualifiers(), BasicType::SignedInt ), "0") ) ) );
Note: See TracChangeset for help on using the changeset viewer.