From 700241e11499d3ef6e6366f95324705e851630ee Mon Sep 17 00:00:00 2001 From: Saveliy Grigoryev Date: Wed, 1 Dec 2021 17:58:32 +0300 Subject: [PATCH] Fix stub problem --- server/src/printers/Printer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/printers/Printer.cpp b/server/src/printers/Printer.cpp index 564360c88..2749ad9cf 100644 --- a/server/src/printers/Printer.cpp +++ b/server/src/printers/Printer.cpp @@ -405,7 +405,7 @@ namespace printer { methodCopy.name = method.name; string stubSymbolicVarName = getStubSymbolicVarName(method.name); - if (!types::TypesHandler::isVoid(method.returnType)) { + if (!types::TypesHandler::omitMakeSymbolic(method.returnType)) { strDeclareArrayVar(types::Type::createArray(method.returnType), stubSymbolicVarName, types::PointerUsage::PARAMETER); }