- implicitly clear local dynamic arrays

https://forum.zdoom.org/viewtopic.php?t=62710
This commit is contained in:
alexey.lysiuk 2019-10-20 12:59:20 +03:00 committed by Christoph Oelckers
commit ce8b235d0b
2 changed files with 30 additions and 15 deletions

View file

@ -2131,6 +2131,12 @@ class FxLocalVariableDeclaration : public FxExpression
FxExpression *Init;
int VarFlags;
int RegCount;
protected:
FxExpression *clearExpr;
void ClearDynamicArray(VMFunctionBuilder *build);
public:
int StackOffset = -1;
int RegNum = -1;
@ -2194,7 +2200,6 @@ class FxLocalArrayDeclaration : public FxLocalVariableDeclaration
{
PType *ElementType;
FArgumentList values;
FxExpression *clearExpr;
public: