diff options
author | Sam Clegg <sbc@chromium.org> | 2019-09-18 21:51:03 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2019-09-18 21:51:03 +0000 |
commit | e40ef12bfad0108024d7d3979565096843bb29a7 (patch) | |
tree | d3ac7551db2a045a96b3457355637ad70de7b491 | |
parent | 79718839d282506f1c2d5e439fc433e94c3abf3f (diff) | |
download | bcm5719-llvm-e40ef12bfad0108024d7d3979565096843bb29a7.tar.gz bcm5719-llvm-e40ef12bfad0108024d7d3979565096843bb29a7.zip |
[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
-rw-r--r-- | lld/wasm/InputFiles.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/wasm/InputFiles.h b/lld/wasm/InputFiles.h index 2b25906f443..4a445a71835 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<Symbol *> getSymbols() const { return symbols; } |