--- /opt/cvs/dotgnu/pnet/codegen/cg_stmt.tc Fri Sep 20 14:53:59 2002 +++ /tmp/dotgnu/pnet/codegen/cg_stmt.tc Fri Sep 27 00:06:00 2002 @@ -333,7 +333,7 @@ IL_ENDS_IN_GOTO | IL_ENDS_IN_THROW)) != 0) { - return 1; + return flags; } } return 0; --- /opt/cvs/dotgnu/pnet/codegen/cg_decls.tc Fri Sep 20 14:53:58 2002 +++ /tmp/dotgnu/pnet/codegen/cg_decls.tc Fri Sep 27 00:08:34 2002 @@ -693,7 +693,7 @@ { /* Add an explicit return instruction if the body didn't */ outputLabel = 0; - if(!ILNodeEndsInFlowChange(node->body)) + if((ILNodeEndsInFlowChange(node->body) & IL_ENDS_IN_RETURN)==0) { if(info->returnLabel != ILLabel_Undefined && info->returnType == ILType_Void)