Bug 1125701 - Fix -Wmaybe-uninitialized warnings in js/src/jit/arm/Assembler-arm.h. r=mrosenberg

This commit is contained in:
Chris Peterson 2015-01-26 19:47:30 -08:00
parent 38e4935e31
commit c681ce75a8

View File

@ -1845,12 +1845,14 @@ class Instruction
data = src.data;
return *this;
}
// Since almost all instructions have condition codes, the condition code
// extractor resides in the base class.
void extractCond(Assembler::Condition *c) {
if (data >> 28 != 0xf )
*c = (Assembler::Condition)(data & 0xf0000000);
MOZ_ASSERT(data >> 28 != 0xf, "Instruction must have a condition code");
*c = (Assembler::Condition)(data & 0xf0000000);
}
// Get the next instruction in the instruction stream.
// This does neat things like ignoreconstant pools and their guards.
Instruction *next();