Skip to content

Commit 3a78d87

Browse files
authored
Merge pull request #17138 from JuliaLang/yyc/tests/llvm
Fix compilation on LLVM svn
2 parents d051cb5 + 3dd9d43 commit 3a78d87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cgutils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ static Value *stringConstPtr(const std::string &txt)
5959
(const unsigned char*)pooledtxt.data(),
6060
pooledtxt.size())),
6161
ssno.str());
62+
#ifdef LLVM39
63+
gv->setUnnamedAddr(GlobalValue::UnnamedAddr::Global);
64+
#else
6265
gv->setUnnamedAddr(true);
66+
#endif
6367
pooledval->second = gv;
6468
jl_ExecutionEngine->addGlobalMapping(gv, (void*)(uintptr_t)pooledtxt.data());
6569
}

0 commit comments

Comments
 (0)