aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-07-05 14:48:59 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-07-05 14:48:59 +0000
commit64388ceee00d5e8fc8750ce7967c07a83af3a5a8 (patch)
tree4e6cfb89825bacfcd9328b082112b7adfbb13037
parent598179ee2f5a31d4b2d3932963a3714ab235ec2e (diff)
downloadexternal_llvm-64388ceee00d5e8fc8750ce7967c07a83af3a5a8.zip
external_llvm-64388ceee00d5e8fc8750ce7967c07a83af3a5a8.tar.gz
external_llvm-64388ceee00d5e8fc8750ce7967c07a83af3a5a8.tar.bz2
Fix warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134408 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Object/COFFObjectFile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp
index 18aad9a..158263e 100644
--- a/lib/Object/COFFObjectFile.cpp
+++ b/lib/Object/COFFObjectFile.cpp
@@ -117,7 +117,7 @@ error_code COFFObjectFile::getSymbolNext(DataRefImpl Symb,
error_code COFFObjectFile::getSymbolAddress(DataRefImpl Symb,
uint64_t &Result) const {
const coff_symbol *symb = toSymb(Symb);
- const coff_section *Section;
+ const coff_section *Section = NULL;
if (error_code ec = getSection(symb->SectionNumber, Section))
return ec;
char Type;
@@ -138,7 +138,7 @@ error_code COFFObjectFile::getSymbolSize(DataRefImpl Symb,
// in the same section as this symbol, and looking for either the next
// symbol, or the end of the section.
const coff_symbol *symb = toSymb(Symb);
- const coff_section *Section;
+ const coff_section *Section = NULL;
if (error_code ec = getSection(symb->SectionNumber, Section))
return ec;
char Type;
@@ -171,7 +171,7 @@ error_code COFFObjectFile::getSymbolNMTypeChar(DataRefImpl Symb,
uint32_t Characteristics = 0;
if (symb->SectionNumber > 0) {
- const coff_section *Section;
+ const coff_section *Section = NULL;
if (error_code ec = getSection(symb->SectionNumber, Section))
return ec;
Characteristics = Section->Characteristics;