COFF: Fix null pointer dereference.

llvm-svn: 240447
This commit is contained in:
Peter Collingbourne 2015-06-23 20:02:31 +00:00
parent cfacc9d3e6
commit bf0aa08bba
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ bool LinkerDriver::link(llvm::ArrayRef<const char *> ArgsArr) {
if (Config->Verbose)
llvm::outs() << "Reading " << File->getName() << "\n";
if (auto EC = Symtab.addFile(std::move(File))) {
llvm::errs() << File->getName() << ": " << EC.message() << "\n";
llvm::errs() << MB.getBufferIdentifier() << ": " << EC.message() << "\n";
return false;
}
}