compiler/passes/normalize.cpp
// If we run into issues due to this computation, just require explicitly
// declared return types for exported functions
If we run into issues due to this computation, just require explicitly
declared return types for exported functions
If we run into issues due to this computation just require explicitly declared return types for exported functions
static bool hasNonVoidReturnStmt(FnSymbol* fn) {
  std::vector<CallExpr*> calls;
  collectMyCallExprs(fn, calls, fn);
  for_vector(CallExpr, call, calls) {
    if (call->isPrimitive(PRIM_RETURN) == true) {
      if (isVoidReturn(call) == false) {
        return true;
      }
    }
  }
  return false;
}
static bool hasNonVoidReturnStmt ( FnSymbol * fn ) { std :: vector < CallExpr * > calls ; collectMyCallExprs ( fn , calls , fn ) ; for_vector ( CallExpr , call , calls ) { if ( call -> isPrimitive ( PRIM_RETURN ) == true ) { if ( isVoidReturn ( call ) == false ) { return true ; } } } return false ; }
If we run into issues due to this computation, just require explicitly
declared return types for exported functions
If we run into issues due to this computation just require explicitly declared return types for exported functions