From: Sam Clegg Date: Wed, 18 Sep 2019 21:51:03 +0000 (+0000) Subject: [lld][WebAssembly] Fix use after free of archive path X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e40ef12bfad0108024d7d3979565096843bb29a7;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/lld/wasm/InputFiles.h b/lld/wasm/InputFiles.h index 2b25906..4a445a7 100644 --- a/lld/wasm/InputFiles.h +++ b/lld/wasm/InputFiles.h @@ -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 getSymbols() const { return symbols; }