diff --git a/hphp/runtime/vm/translator/translator-x64.cpp b/hphp/runtime/vm/translator/translator-x64.cpp index 8b667438d..23fa60a02 100644 --- a/hphp/runtime/vm/translator/translator-x64.cpp +++ b/hphp/runtime/vm/translator/translator-x64.cpp @@ -9073,7 +9073,7 @@ TranslatorX64::translateFPushObjMethodD(const Tracelet &t, } if (func) { - if (func->attrs() & AttrStatic) { + if (func->attrs() & AttrStatic && !func->isClosureBody()) { if (func->attrs() & AttrPrivate) { emitVStackStoreImm(a, i, uintptr_t(curFunc()->cls()) | 1, thisOff, sz::qword);