Permalink
Browse files

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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160081 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
1 parent db5391b commit 9a1199459d54b7b3cbe444480ae75d286e362d01 Jack Carter committed Jul 11, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/Target/Mips/MipsAsmPrinter.cpp
View
7 lib/Target/Mips/MipsAsmPrinter.cpp
@@ -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':

0 comments on commit 9a11994

Please sign in to comment.