mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Code review tweaks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1542,15 +1542,15 @@ bool ExportEntry::operator==(const ExportEntry &Other) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
uint64_t ExportEntry::readULEB128(const uint8_t *&p) {
|
||||
unsigned count;
|
||||
uint64_t result = decodeULEB128(p, &count);
|
||||
p += count;
|
||||
if (p > Trie.end()) {
|
||||
p = Trie.end();
|
||||
uint64_t ExportEntry::readULEB128(const uint8_t *&Ptr) {
|
||||
unsigned Count;
|
||||
uint64_t Result = decodeULEB128(Ptr, &Count);
|
||||
Ptr += Count;
|
||||
if (Ptr > Trie.end()) {
|
||||
Ptr = Trie.end();
|
||||
Malformed = true;
|
||||
}
|
||||
return result;
|
||||
return Result;
|
||||
}
|
||||
|
||||
StringRef ExportEntry::name() const {
|
||||
@@ -1616,8 +1616,8 @@ void ExportEntry::pushDownUntilBottom() {
|
||||
NodeState &Top = Stack.back();
|
||||
CumulativeString.resize(Top.ParentStringLength);
|
||||
for (;*Top.Current != 0; Top.Current++) {
|
||||
char c = *Top.Current;
|
||||
CumulativeString.push_back(c);
|
||||
char C = *Top.Current;
|
||||
CumulativeString.push_back(C);
|
||||
}
|
||||
Top.Current += 1;
|
||||
uint64_t childNodeIndex = readULEB128(Top.Current);
|
||||
|
Reference in New Issue
Block a user