only accept sites conforming to specified SiteMask in getTarget

This commit is contained in:
Joel Dice 2009-03-06 17:37:54 -07:00
parent 9b9ae62541
commit fd7bef7db3

View File

@ -2812,7 +2812,7 @@ getTarget(Context* c, Value* value, Value* result, const SiteMask& resultMask)
maybePreserve(c, value, s);
} else {
SingleRead r(resultMask);
s = pickTargetSite(c, &r);
s = pickTargetSite(c, &r, true);
v = result;
addSite(c, result, s);
}