Changeset 56e49b0 for src/SymTab/Validate.cc
- Timestamp:
- Aug 7, 2017, 12:35:05 PM (7 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:
- acd7c5dd
- Parents:
- 92c0f81
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r92c0f81 r56e49b0 903 903 FunctionType * ftype = functionDecl->get_functionType(); 904 904 std::list< DeclarationWithType * > & retVals = ftype->get_returnVals(); 905 assertf( retVals.size() == 0 || retVals.size() == 1, "Function %s has too many return values: % d", functionDecl->get_name().c_str(), retVals.size() );905 assertf( retVals.size() == 0 || retVals.size() == 1, "Function %s has too many return values: %zu", functionDecl->get_name().c_str(), retVals.size() ); 906 906 if ( retVals.size() == 1 ) { 907 907 // ensure all function return values have a name - use the name of the function to disambiguate (this also provides a nice bit of help for debugging).
Note: See TracChangeset
for help on using the changeset viewer.