This change removes an "initialization" warning.

Even though variable in question could not 
be initialized before use, the code was such that 
the compiler had no way of knowing that.

llvm-svn: 160081
This commit is contained in:
Jack Carter 2012-07-11 21:41:49 +00:00
parent 54cc6e407a
commit 42ebf98b04
1 changed files with 3 additions and 4 deletions

View File

@ -353,10 +353,9 @@ bool MipsAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNum,
}
return true;
}
unsigned RegOp;
if (Subtarget->isGP64bit())
RegOp = OpNum;
else {
unsigned RegOp = OpNum;
if (!Subtarget->isGP64bit()){
// Endianess reverses which register holds the high or low value
switch(ExtraCode[0]) {
case 'D':