diff options
Diffstat (limited to 'gnu/llvm/lib/CodeGen/StackProtector.cpp')
| -rw-r--r-- | gnu/llvm/lib/CodeGen/StackProtector.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/llvm/lib/CodeGen/StackProtector.cpp b/gnu/llvm/lib/CodeGen/StackProtector.cpp index db3fef524b3..d45d31ee0ae 100644 --- a/gnu/llvm/lib/CodeGen/StackProtector.cpp +++ b/gnu/llvm/lib/CodeGen/StackProtector.cpp @@ -341,11 +341,9 @@ static bool CreatePrologue(Function *F, Module *M, ReturnInst *RI, StackGuardVar = ConstantExpr::getIntToPtr(OffsetVal, PointerType::get(PtrTy, AddressSpace)); - } else if (TT.isOSOpenBSD()) { + } else if (TT.isOSOpenBSD()) StackGuardVar = M->getOrInsertGlobal("__guard_local", PtrTy); - cast<GlobalValue>(StackGuardVar) - ->setVisibility(GlobalValue::HiddenVisibility); - } else { + else { SupportsSelectionDAGSP = true; StackGuardVar = M->getOrInsertGlobal("__stack_chk_guard", PtrTy); } |
