mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
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. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_31@155308 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user