mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Silence false positive uninitialized variable warnings from GCC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139573 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5a457c4cb
commit
cee58a69fa
@ -447,7 +447,7 @@ error_code COFFObjectFile::getString(uint32_t offset,
|
|||||||
|
|
||||||
const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const {
|
const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const {
|
||||||
assert(Rel.d.b < Header->NumberOfSections && "Section index out of range!");
|
assert(Rel.d.b < Header->NumberOfSections && "Section index out of range!");
|
||||||
const coff_section *Sect;
|
const coff_section *Sect = NULL;
|
||||||
getSection(Rel.d.b, Sect);
|
getSection(Rel.d.b, Sect);
|
||||||
assert(Rel.d.a < Sect->NumberOfRelocations && "Relocation index out of range!");
|
assert(Rel.d.a < Sect->NumberOfRelocations && "Relocation index out of range!");
|
||||||
return
|
return
|
||||||
@ -463,7 +463,7 @@ error_code COFFObjectFile::getRelocationNext(DataRefImpl Rel,
|
|||||||
if (++Rel.d.a >= Sect->NumberOfRelocations) {
|
if (++Rel.d.a >= Sect->NumberOfRelocations) {
|
||||||
Rel.d.a = 0;
|
Rel.d.a = 0;
|
||||||
while (++Rel.d.b < Header->NumberOfSections) {
|
while (++Rel.d.b < Header->NumberOfSections) {
|
||||||
const coff_section *Sect;
|
const coff_section *Sect = NULL;
|
||||||
getSection(Rel.d.b, Sect);
|
getSection(Rel.d.b, Sect);
|
||||||
if (Sect->NumberOfRelocations > 0)
|
if (Sect->NumberOfRelocations > 0)
|
||||||
break;
|
break;
|
||||||
@ -474,7 +474,7 @@ error_code COFFObjectFile::getRelocationNext(DataRefImpl Rel,
|
|||||||
}
|
}
|
||||||
error_code COFFObjectFile::getRelocationAddress(DataRefImpl Rel,
|
error_code COFFObjectFile::getRelocationAddress(DataRefImpl Rel,
|
||||||
uint64_t &Res) const {
|
uint64_t &Res) const {
|
||||||
const coff_section *Sect;
|
const coff_section *Sect = NULL;
|
||||||
if (error_code ec = getSection(Rel.d.b, Sect))
|
if (error_code ec = getSection(Rel.d.b, Sect))
|
||||||
return ec;
|
return ec;
|
||||||
const coff_relocation* R = toRel(Rel);
|
const coff_relocation* R = toRel(Rel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user