mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 00:37:09 +00:00
Remove some potential warnings about variables used uninitialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d46575f190
commit
eb23f9e92e
@ -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);
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user