Commit 4ea5fe07 authored by Bill Wendling's avatar Bill Wendling
Browse files

Merging r155307:

------------------------------------------------------------------------
r155307 | void | 2012-04-22 00:23:04 -0700 (Sun, 22 Apr 2012) | 1 line

Remove some potential warnings about variables used uninitialized.
------------------------------------------------------------------------

llvm-svn: 155308
parent d5920bc1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1732,7 +1732,7 @@ StringRef ScalarNode::unescapeDoubleQuoted( StringRef UnquotedValue
          if (UnquotedValue.size() < 3)
            // TODO: Report error.
            break;
          unsigned int UnicodeScalarValue;
          unsigned int UnicodeScalarValue = 0;
          UnquotedValue.substr(1, 2).getAsInteger(16, UnicodeScalarValue);
          encodeUTF8(UnicodeScalarValue, Storage);
          UnquotedValue = UnquotedValue.substr(2);
@@ -1742,7 +1742,7 @@ StringRef ScalarNode::unescapeDoubleQuoted( StringRef UnquotedValue
          if (UnquotedValue.size() < 5)
            // TODO: Report error.
            break;
          unsigned int UnicodeScalarValue;
          unsigned int UnicodeScalarValue = 0;
          UnquotedValue.substr(1, 4).getAsInteger(16, UnicodeScalarValue);
          encodeUTF8(UnicodeScalarValue, Storage);
          UnquotedValue = UnquotedValue.substr(4);
@@ -1752,7 +1752,7 @@ StringRef ScalarNode::unescapeDoubleQuoted( StringRef UnquotedValue
          if (UnquotedValue.size() < 9)
            // TODO: Report error.
            break;
          unsigned int UnicodeScalarValue;
          unsigned int UnicodeScalarValue = 0;
          UnquotedValue.substr(1, 8).getAsInteger(16, UnicodeScalarValue);
          encodeUTF8(UnicodeScalarValue, Storage);
          UnquotedValue = UnquotedValue.substr(8);
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ getMachineOpValue(const MCInst &MI, const MCOperand &MO,

  assert (Kind == MCExpr::SymbolRef);
    
  Mips::Fixups FixupKind;
  Mips::Fixups FixupKind = Mips::Fixups(0);

  switch(cast<MCSymbolRefExpr>(Expr)->getKind()) {
  case MCSymbolRefExpr::VK_Mips_GPREL: