The object allocation does not consume a value from stack

This commit is contained in:
Volker Berlin 2020-01-05 21:42:36 +01:00
parent 783d22fa50
commit ee4409311f

View File

@ -219,12 +219,12 @@ class WasmStructInstruction extends WasmInstruction {
@Override
int getPopCount() {
switch( op ) {
case NEW:
case NEW_DEFAULT:
case GET:
return 1;
case SET:
return 2;
case NEW:
case NEW_DEFAULT:
case NULL:
return 0;
default: