Fix one case where we test goout rather than has_goout. The effect

was to incorrect use a return statement before the goout typemap
code.
This commit is contained in:
Ian Lance Taylor 2014-09-12 17:46:21 -07:00
commit 39433f12e4

View file

@ -1095,7 +1095,7 @@ private:
String *call = NewString("");
bool need_return_var = SwigType_type(result) != T_VOID && ((gccgo_flag && is_constructor) || goout != NULL);
bool need_return_var = SwigType_type(result) != T_VOID && ((gccgo_flag && is_constructor) || has_goout);
if (need_return_var) {
Printv(f_go_wrappers, "\tvar swig_r ", NULL);
if (is_constructor) {