projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5d4cdb
)
[COFF] Fix dangling StringRefs from SVN 331900
author
Martin Storsjo
<martin@martin.st>
Wed, 9 May 2018 19:07:10 +0000
(19:07 +0000)
committer
Martin Storsjo
<martin@martin.st>
Wed, 9 May 2018 19:07:10 +0000
(19:07 +0000)
llvm-svn: 331912
lld/COFF/Driver.cpp
patch
|
blob
|
history
diff --git
a/lld/COFF/Driver.cpp
b/lld/COFF/Driver.cpp
index
3defdc7
..
62c0b49
100644
(file)
--- 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;
}