Merge remote-tracking branch 'origin/GP-3720_Dan_fixAddressTrackingWithBrokenWatch' into patch

This commit is contained in:
Ryan Kurtz 2023-08-09 13:21:48 -04:00
commit 9f57a095d8

View file

@ -308,9 +308,12 @@ public enum SleighUtils {
match(tree, SleighParser.OP_DEREFERENCE, onSize, onOffset); match(tree, SleighParser.OP_DEREFERENCE, onSize, onOffset);
return; return;
default: default:
matchTree(tree, SleighParser.OP_DEREFERENCE, children -> {
throw new AssertionError( throw new AssertionError(
"OP_DEREFERENCE with 2 children where child[0] is " + "OP_DEREFERENCE with 2 children where child[0] is " +
SleighParser.tokenNames[child0.getType()]); SleighParser.tokenNames[child0.getType()]);
});
return;
} }
case 1: case 1:
match(tree, SleighParser.OP_DEREFERENCE, onOffset); match(tree, SleighParser.OP_DEREFERENCE, onOffset);