MemAccessInst* memInst = (MemAccessInst*) vmInstrNode->getInstruction();
// Initialize so we default to storing the offset in a register.
- int64_t smallConstOffset;
+ int64_t smallConstOffset = 0;
Value* valueForRegOffset = NULL;
MachineOperand::MachineOperandType offsetOpType =MachineOperand::MO_VirtualRegister;
if (idxVec.size() > 0)
{
bool isConstantOffset = false;
- unsigned offset;
+ unsigned offset = 0;
const PointerType* ptrType = (PointerType*) ptrVal->getType();
bool mustClearReg;
int valueToMove;
- MachineOpCode movOpCode;
+ MachineOpCode movOpCode = 0;
Value* ccValue = NULL;
if (subtreeRoot->leftChild()->getValue()->getType()->isIntegral() ||
CorrectCol = SparcIntRegOrder::o0;
else if(RegClassID == FloatRegClassID)
CorrectCol = SparcFloatRegOrder::f0;
- else
+ else {
assert( 0 && "Unknown RegClass");
-
+ return;
+ }
// if the LR received the correct color, NOTHING to do
unsigned RegClassID = getRegClassIDOfValue(RetVal);
unsigned RegType = getRegType( RetVal );
-
unsigned CorrectCol;
if(RegClassID == IntRegClassID)
CorrectCol = SparcIntRegOrder::i0;
else if(RegClassID == FloatRegClassID)
CorrectCol = SparcFloatRegOrder::f0;
- else
+ else {
assert( 0 && "Unknown RegClass");
-
+ return;
+ }
// if the LR received the correct color, NOTHING to do