From bb40c64e2555aedcfc8c680e990a781adf59a4ca Mon Sep 17 00:00:00 2001 From: ptarjan Date: Mon, 25 Mar 2013 01:01:00 -0700 Subject: [PATCH] fix this callsite incase someone ever does the TODO for setting valueClass() --- hphp/runtime/vm/translator/translator-x64.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);