From 6b50ac047748bc1fbce3ddcfd40690ae59c20a85 Mon Sep 17 00:00:00 2001 From: mwilliams Date: Mon, 3 Jun 2013 08:27:37 -0700 Subject: [PATCH] Fix PACKED_TV test failures In the PACKED_TV build, two tests were failing due to treating the type as a 32 bit field. --- hphp/runtime/vm/jit/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hphp/runtime/vm/jit/codegen.cpp b/hphp/runtime/vm/jit/codegen.cpp index 42aa5f77c..d8dd373ff 100644 --- a/hphp/runtime/vm/jit/codegen.cpp +++ b/hphp/runtime/vm/jit/codegen.cpp @@ -2737,7 +2737,7 @@ void CodeGenerator::cgIncRefWork(Type type, SSATmp* src) { assert(IS_REFCOUNTED_TYPE(type.toDataType())); increfMaybeStatic(); } else { - m_as.cmpl(KindOfRefCountThreshold, r32(m_regs[src].reg(1))); + emitCmpTVType(m_as, KindOfRefCountThreshold, m_regs[src].reg(1)); ifThen(m_as, CC_NLE, [&] { increfMaybeStatic(); }); } }