diff --git a/llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp b/llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp index ae638c7c5f808b05aa29e2d555b72548c871a486..f7dcb680cd6a241c9708d6e4c453ff9b7ae8b90f 100644 --- a/llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp +++ b/llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp @@ -627,7 +627,7 @@ CreateSETUWConst(uint32_t C, bool smallNegValue =isSigned && sC < 0 && sC != -sC && -sC < (int32_t)MAXSIMM; //Create TmpInstruction for intermediate values - TmpInstruction *tmpReg; + TmpInstruction *tmpReg = 0; // Set the high 22 bits in dest if non-zero and simm13 field of OR not enough if (!smallNegValue && (C & ~MAXLO) && C > MAXSIMM) {