mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-27 03:48:33 +00:00
Remove dead variable pointed out by GCC 4.6 warnings, and reflow this a little
to scope a variable more tightly per llvm coding style. No functional change. llvm-svn: 130684
This commit is contained in:
parent
c3a8529269
commit
5f1eb968f0
@ -186,11 +186,8 @@ char COFFObjectFile::getSymbolNMTypeChar(DataRefImpl Symb) const {
|
||||
return ret;
|
||||
|
||||
uint32_t Characteristics = 0;
|
||||
uint32_t PointerToRawData = 0;
|
||||
const coff_section *Section = getSection(symb->SectionNumber);
|
||||
if (Section) {
|
||||
if (const coff_section *Section = getSection(symb->SectionNumber)) {
|
||||
Characteristics = Section->Characteristics;
|
||||
PointerToRawData = Section->PointerToRawData;
|
||||
}
|
||||
|
||||
switch (symb->SectionNumber) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user