- implicitly clear local dynamic arrays
https://forum.zdoom.org/viewtopic.php?t=62710
This commit is contained in:
parent
1dd08a73ed
commit
ce8b235d0b
2 changed files with 30 additions and 15 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue