[llvm-commits] [llvm] r160081 - /llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
Jack Carter
jcarter at mips.com
Wed Jul 11 14:41:50 PDT 2012
Author: jacksprat
Date: Wed Jul 11 16:41:49 2012
New Revision: 160081
URL: http://llvm.org/viewvc/llvm-project?rev=160081&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp?rev=160081&r1=160080&r2=160081&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsAsmPrinter.cpp Wed Jul 11 16:41:49 2012
@@ -353,10 +353,9 @@
}
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':
More information about the llvm-commits
mailing list