[PECOFF] Fix uninitialized variable

llvm-svn: 201970
This commit is contained in:
Nico Rieck 2014-02-23 10:40:15 +00:00
parent af2c1130ee
commit aa675e9379
1 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,8 @@ DefinedAtom::Merge getMerge(const coff_aux_section_definition *auxsym) {
}
FileCOFF::FileCOFF(std::unique_ptr<MemoryBuffer> mb, error_code &ec)
: File(mb->getBufferIdentifier(), kindObject), _ordinal(0) {
: File(mb->getBufferIdentifier(), kindObject), _compatibleWithSEH(false),
_ordinal(0) {
auto binaryOrErr = llvm::object::createBinary(mb.release());
if ((ec = binaryOrErr.getError()))
return;