Changeset: 1131be57d355 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1131be57d355
Modified Files:
        sql/backends/monet5/sql_gencode.c
Branch: Dec2023
Log Message:

no more dummy return statements


diffs (21 lines):

diff --git a/sql/backends/monet5/sql_gencode.c 
b/sql/backends/monet5/sql_gencode.c
--- a/sql/backends/monet5/sql_gencode.c
+++ b/sql/backends/monet5/sql_gencode.c
@@ -1066,17 +1066,6 @@ backend_dumpstmt_body(backend *be, MalBl
                }
                pushInstruction(mb, q);
        }
-       /* generate a dummy return assignment for functions */
-       if (getArgType(mb, getInstrPtr(mb, 0), 0) != TYPE_void && 
getInstrPtr(mb, mb->stop - 1)->barrier != RETURNsymbol) {
-               q = newAssignment(mb);
-               if (q == NULL) {
-                       sql_error(m, 10, SQLSTATE(HY013) MAL_MALLOC_FAIL);
-                       return -1;
-               }
-               getArg(q, 0) = getArg(getInstrPtr(mb, 0), 0);
-               q->barrier = RETURNsymbol;
-               pushInstruction(mb, q);
-       }
        if (add_end)
                pushEndInstruction(mb);
        if (querylog)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to