diff options
| author | 2017-01-14 20:03:33 +0000 | |
|---|---|---|
| committer | 2017-01-14 20:03:33 +0000 | |
| commit | dc7ed217e9eb98649b8c5ed4495b0a3dc1b7ff43 (patch) | |
| tree | c79aa107474a358f6af1132e6d94161c1e33a918 /gnu/llvm/lib/CodeGen/TargetLoweringBase.cpp | |
| parent | Import LLVM 3.9.1 including clang and lld. (diff) | |
| download | wireguard-openbsd-dc7ed217e9eb98649b8c5ed4495b0a3dc1b7ff43.tar.xz wireguard-openbsd-dc7ed217e9eb98649b8c5ed4495b0a3dc1b7ff43.zip | |
Merge LLVM 3.9.1
Diffstat (limited to 'gnu/llvm/lib/CodeGen/TargetLoweringBase.cpp')
| -rw-r--r-- | gnu/llvm/lib/CodeGen/TargetLoweringBase.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gnu/llvm/lib/CodeGen/TargetLoweringBase.cpp b/gnu/llvm/lib/CodeGen/TargetLoweringBase.cpp index 6d3fe8ca647..8ca2bf9e86d 100644 --- a/gnu/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/gnu/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -1818,9 +1818,7 @@ Value *TargetLoweringBase::getIRStackGuard(IRBuilder<> &IRB) const { if (getTargetMachine().getTargetTriple().isOSOpenBSD()) { Module &M = *IRB.GetInsertBlock()->getParent()->getParent(); PointerType *PtrTy = Type::getInt8PtrTy(M.getContext()); - auto Guard = cast<GlobalValue>(M.getOrInsertGlobal("__guard_local", PtrTy)); - Guard->setVisibility(GlobalValue::HiddenVisibility); - return Guard; + return M.getOrInsertGlobal("__guard_local", PtrTy); } return nullptr; } |
