[lld][WebAssembly] Fix use after free of archive path

This was fixed in the ELF backend in https://reviews.llvm.org/D34554.

Differential Revision: https://reviews.llvm.org/D67676

llvm-svn: 372266
This commit is contained in:
Sam Clegg 2019-09-18 21:51:03 +00:00
parent 79718839d2
commit e40ef12bfa

View File

@ -54,7 +54,7 @@ public:
Kind kind() const { return fileKind; }
// An archive file name if this file is created from an archive.
StringRef archiveName;
std::string archiveName;
ArrayRef<Symbol *> getSymbols() const { return symbols; }