Changeset aaa1a99a for src/CodeGen
- Timestamp:
- Jan 12, 2017, 3:33:24 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 4d3cba50
- Parents:
- 13de47bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/CodeGen/FixNames.cc ¶
r13de47bc raaa1a99a 120 120 int nargs = functionDecl->get_functionType()->get_parameters().size(); 121 121 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); 123 123 } 124 124 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.