Skip to content

Commit

Permalink
Fix a bug in ClsCnsD type prediction.
Browse files Browse the repository at this point in the history
In repoAuth mode, for unique classes, the material type of a
class constant is very strong evidence of its type. In other situations
it's just a prediction.
  • Loading branch information
kma authored and sgolemon committed Oct 12, 2012
1 parent 14a61b7 commit 76da87d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/vm/translator/translator.cpp
Expand Up @@ -481,6 +481,7 @@ predictOutputs(NormalizedInstruction* ni) {
if (cls && (cls = cls->getCached())) {
DataType dt = cls->clsCnsType(cnsName);
if (dt != KindOfUninit) {
ni->outputPredicted = true;
TRACE(1, "clscnsd: %s:%s prediction type %d\n",
cne.first->data(), cnsName->data(), dt);
return dt;
Expand Down

0 comments on commit 76da87d

Please sign in to comment.