diff options
author | jacksprat <jacksprat@91177308-0d34-0410-b5e6-96231b3b80d8> | 2012-07-11 21:41:49 +0000 |
---|---|---|
committer | jacksprat <jacksprat@91177308-0d34-0410-b5e6-96231b3b80d8> | 2012-07-11 21:41:49 +0000 |
commit | d8b0e6cb4ec1c1aebcf6b3b7f6f0af618f99fa9d (patch) | |
tree | b61c9d0a4fc523afecba9ea7841bf9d24d7a12e4 | |
parent | 24ce24e8d80c14a56ed6e37169aea7826ddf3d6c (diff) |
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
-rw-r--r-- | lib/Target/Mips/MipsAsmPrinter.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/Mips/MipsAsmPrinter.cpp b/lib/Target/Mips/MipsAsmPrinter.cpp index 3c50bae071a..4dac59105de 100644 --- a/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/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': |