diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-01-24 20:23:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-01-24 20:23:48 +0000 |
| commit | a096e0bdf6cfa020569afca490d8e4c9ac8ebb01 (patch) | |
| tree | 39ef21ba905e021d44b9a5fb47336d4a864da27e /lib/CodeGen/GlobalMerge.cpp | |
| parent | d215fd3b74b90f5dc1964610926fcc2a20f959aa (diff) | |
Diffstat (limited to 'lib/CodeGen/GlobalMerge.cpp')
| -rw-r--r-- | lib/CodeGen/GlobalMerge.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/GlobalMerge.cpp b/lib/CodeGen/GlobalMerge.cpp index 8b9545da914e..3888226fa059 100644 --- a/lib/CodeGen/GlobalMerge.cpp +++ b/lib/CodeGen/GlobalMerge.cpp @@ -577,7 +577,8 @@ bool GlobalMerge::doInitialization(Module &M) { for (auto &GV : M.globals()) { // Merge is safe for "normal" internal or external globals only if (GV.isDeclaration() || GV.isThreadLocal() || - GV.hasSection() || GV.hasImplicitSection()) + GV.hasSection() || GV.hasImplicitSection() || + GV.hasDLLExportStorageClass()) continue; // It's not safe to merge globals that may be preempted |
