Most constructors return null

So annotate the PopR to avoid generating code.
Esse commit está contido em:
mwilliams
2013-03-18 10:06:19 -07:00
commit de Sara Golemon
commit c489379fca
+7
Ver Arquivo
@@ -3382,6 +3382,13 @@ bool EmitterVisitor::visitImpl(ConstructPtr node) {
}
e.FCall(numParams);
if (Option::WholeProgram) {
FunctionScopePtr fs = ne->getFuncScope();
if (fs && !fs->getReturnType()) {
m_evalStack.setKnownType(KindOfNull, false /* inferred */);
m_evalStack.setNotRef();
}
}
e.PopR();
return true;
}