diff options
| author | Martin Storsjo <martin@martin.st> | 2018-05-09 19:07:10 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2018-05-09 19:07:10 +0000 |
| commit | 5c84d442f5c854d9403a6bf9c8f47ca8330de24d (patch) | |
| tree | ddb45bd9bd882fb5216500d0e9bd300cc1cdf65e | |
| parent | d5d4cdb49de21011b847ea7c5a819c03caeec965 (diff) | |
| download | bcm5719-llvm-5c84d442f5c854d9403a6bf9c8f47ca8330de24d.tar.gz bcm5719-llvm-5c84d442f5c854d9403a6bf9c8f47ca8330de24d.zip | |
[COFF] Fix dangling StringRefs from SVN 331900
llvm-svn: 331912
| -rw-r--r-- | lld/COFF/Driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp index 3defdc7d41f..62c0b49ac01 100644 --- a/lld/COFF/Driver.cpp +++ b/lld/COFF/Driver.cpp @@ -630,8 +630,8 @@ static void parseModuleDefs(StringRef Path) { // it shouldn't be a normal exported function but a forward to another // DLL instead. This is supported by both MS and GNU linkers. if (E1.ExtName != E1.Name && StringRef(E1.Name).contains('.')) { - E2.Name = E1.ExtName; - E2.ForwardTo = E1.Name; + E2.Name = Saver.save(E1.ExtName); + E2.ForwardTo = Saver.save(E1.Name); Config->Exports.push_back(E2); continue; } |

