This commit is contained in:
Qunxin Liu 2021-04-08 11:00:17 -07:00 committed by Behdad Esfahbod
parent 430a67ceab
commit 9dc9f0385d
2 changed files with 4 additions and 0 deletions

View File

@ -492,9 +492,13 @@ struct Anchor
{ {
TRACE_SUBSET (this); TRACE_SUBSET (this);
if (c->plan->drop_hints) if (c->plan->drop_hints)
{
// AnchorFormat 2 and 3 just containing extra hinting information, so // AnchorFormat 2 and 3 just containing extra hinting information, so
// if hints are being dropped convert to format 1. // if hints are being dropped convert to format 1.
if (u.format != 1 && u.format != 2 && u.format != 3)
return_trace (false);
return_trace (bool (reinterpret_cast<Anchor *> (u.format1.copy (c->serializer)))); return_trace (bool (reinterpret_cast<Anchor *> (u.format1.copy (c->serializer))));
}
switch (u.format) { switch (u.format) {
case 1: return_trace (bool (reinterpret_cast<Anchor *> (u.format1.copy (c->serializer)))); case 1: return_trace (bool (reinterpret_cast<Anchor *> (u.format1.copy (c->serializer))));