[lld] r240447 - COFF: Fix null pointer dereference.
Peter Collingbourne
peter at pcc.me.uk
Tue Jun 23 13:02:31 PDT 2015
Author: pcc
Date: Tue Jun 23 15:02:31 2015
New Revision: 240447
URL: http://llvm.org/viewvc/llvm-project?rev=240447&view=rev
Log:
COFF: Fix null pointer dereference.
Modified:
lld/trunk/COFF/Driver.cpp
Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=240447&r1=240446&r2=240447&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Tue Jun 23 15:02:31 2015
@@ -496,7 +496,7 @@ bool LinkerDriver::link(llvm::ArrayRef<c
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;
}
}
More information about the llvm-commits
mailing list