fix a copy & paste blunder

This commit is contained in:
Momtchil Momtchev 2023-05-14 20:45:54 +02:00 committed by Olly Betts
parent 6b3e7ee850
commit d25b288d8c
1 changed files with 2 additions and 3 deletions

View File

@ -1296,7 +1296,6 @@ String *JSEmitter::emitCheckTypemap(Node *, Parm *p, Wrapper *wrapper, String *a
if (tm != nullptr) {
Replaceall(tm, "$input", arg);
Setattr(p, "emit:input", arg);
Printf(wrapper->code, "%s\n", tm);
}
@ -1586,7 +1585,7 @@ void JSCEmitter::marshalInputArgs(Node *n, ParmList *parms, Wrapper *wrapper, Ma
for (p = parms; p;) {
tm = emitCheckTypemap(n, p, wrapper, Getattr(p, "emit:input"));
if (tm) {
p = Getattr(p, "tmap:in:next");
p = Getattr(p, "tmap:check:next");
} else {
p = nextSibling(p);
}
@ -2246,7 +2245,7 @@ void V8Emitter::marshalInputArgs(Node *n, ParmList *parms, Wrapper *wrapper, Mar
for (p = parms; p;) {
tm = emitCheckTypemap(n, p, wrapper, Getattr(p, "emit:input"));
if (tm) {
p = Getattr(p, "tmap:in:next");
p = Getattr(p, "tmap:check:next");
} else {
p = nextSibling(p);
}