Fix unused local variable warning in NativePPC.cpp (r=me)
authorEdwin Smith <edwsmith@adobe.com>
Wed, 27 Jan 2010 10:17:19 -0500
changeset 37769 cb223e493966159b20157513674b8a511abdb32a
parent 37768 cf0ba05a0ef95a4f80645640d5c88a493961f74d
child 37770 ec77f24175bf6322cc83e2b54eb9b96153410f12
push id11426
push userrsayre@mozilla.com
push dateSun, 31 Jan 2010 16:36:36 +0000
treeherdermozilla-central@3048d03980e7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
milestone1.9.3a1pre
Fix unused local variable warning in NativePPC.cpp (r=me)
js/src/nanojit/NativePPC.cpp
--- a/js/src/nanojit/NativePPC.cpp
+++ b/js/src/nanojit/NativePPC.cpp
@@ -1181,24 +1181,23 @@ namespace nanojit
             // This jump will call underrunProtect again, but since we're on a new
             // page, nothing will happen.
             br(pc, 0);
         }
     #endif
     }
 
     void Assembler::asm_cmov(LIns *ins) {
-        LOpcode op    = ins->opcode();
         LIns* cond    = ins->oprnd1();
         LIns* iftrue  = ins->oprnd2();
         LIns* iffalse = ins->oprnd3();
 
         NanoAssert(cond->isCmp());
-        NanoAssert((op == LIR_cmov  && iftrue->isI32() && iffalse->isI32()) ||
-                   (op == LIR_qcmov && iftrue->isI64() && iffalse->isI64()));
+        NanoAssert((ins->opcode() == LIR_cmov  && iftrue->isI32() && iffalse->isI32()) ||
+                   (ins->opcode() == LIR_qcmov && iftrue->isI64() && iffalse->isI64()));
 
         // fixme: we could handle fpu registers here, too, since we're just branching
         Register rr = deprecated_prepResultReg(ins, GpRegs);
         findSpecificRegFor(iftrue, rr);
         Register rf = findRegFor(iffalse, GpRegs & ~rmask(rr));
         NIns *after = _nIns;
         verbose_only(if (_logc->lcbits & LC_Assembly) outputf("%p:",after);)
         MR(rr, rf);