[Bug] Return reported error in BaseCompiler::_newInvokeNode()

This commit is contained in:
kobalicek
2021-02-28 11:42:08 +01:00
parent 5a5fb8af4c
commit a305905d32

View File

@@ -219,7 +219,7 @@ Error BaseCompiler::_newInvokeNode(InvokeNode** out, uint32_t instId, const Oper
if (argCount) {
node->_args = static_cast<InvokeNode::OperandPack*>(_allocator.alloc(argCount * sizeof(InvokeNode::OperandPack)));
if (!node->_args)
reportError(DebugUtils::errored(kErrorOutOfMemory));
return reportError(DebugUtils::errored(kErrorOutOfMemory));
memset(node->_args, 0, argCount * sizeof(InvokeNode::OperandPack));
}