summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJack Carter <jcarter@mips.com>2012-07-11 21:41:49 +0000
committerJack Carter <jcarter@mips.com>2012-07-11 21:41:49 +0000
commit42ebf98b04678af6700bd279e6b42c659f964d90 (patch)
treee33b6cc18ffed9d484089489bbb168c3f9e3a565 /llvm/lib
parent54cc6e407a478d2ddf3535ea752a463442fcc367 (diff)
downloadbcm5719-llvm-42ebf98b04678af6700bd279e6b42c659f964d90.tar.gz
bcm5719-llvm-42ebf98b04678af6700bd279e6b42c659f964d90.zip
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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Mips/MipsAsmPrinter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
index 3c50bae071a..4dac59105de 100644
--- a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
+++ b/llvm/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':
OpenPOWER on IntegriCloud