diff --git a/hphp/runtime/debugger/cmd/cmd_next.cpp b/hphp/runtime/debugger/cmd/cmd_next.cpp index 56aa6a9cf..6519c545e 100644 --- a/hphp/runtime/debugger/cmd/cmd_next.cpp +++ b/hphp/runtime/debugger/cmd/cmd_next.cpp @@ -214,7 +214,7 @@ bool CmdNext::atStepContOffset(Unit* unit, Offset o) { // simplicity of the exceptional path. void CmdNext::setupStepCont(ActRec* fp, PC pc) { // One byte + one byte argument - auto ops = reinterpret_cast(pc); + DEBUG_ONLY auto ops = reinterpret_cast(pc); assert(ops[0] == OpContSuspend || ops[0] == OpContSuspendK); assert(ops[2] == OpNull); // One byte assert(ops[3] == OpThrow); // One byte diff --git a/hphp/runtime/vm/jit/translator-x64.cpp b/hphp/runtime/vm/jit/translator-x64.cpp index 5e396c6b6..862d9088e 100644 --- a/hphp/runtime/vm/jit/translator-x64.cpp +++ b/hphp/runtime/vm/jit/translator-x64.cpp @@ -3250,8 +3250,8 @@ TranslatorX64::translateWork(const TranslArgs& args) { FTRACE(1, "trying irTranslateTracelet\n"); assertCleanState(); result = irTranslateTracelet(*tp); - static const bool requireRegion = getenv("HHVM_REQUIRE_REGION"); - assert(IMPLIES(region && requireRegion, result != Success)); + DEBUG_ONLY static const bool reqRegion = getenv("HHVM_REQUIRE_REGION"); + assert(IMPLIES(region && reqRegion, result != Success)); } if (result != Success) {