diff options
author | Petr Hosek <phosek@chromium.org> | 2017-11-22 19:50:17 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-11-22 19:50:17 +0000 |
commit | 32c9de009a52a43db3a24c38f05d2543f3fd6911 (patch) | |
tree | 66ed42a4e1db787d5b9126656671c0dbb7a8969d /clang/lib/CodeGen/CGDecl.cpp | |
parent | 3295274725ba7d941468deb388375a66afe78baf (diff) | |
download | bcm5719-llvm-32c9de009a52a43db3a24c38f05d2543f3fd6911.tar.gz bcm5719-llvm-32c9de009a52a43db3a24c38f05d2543f3fd6911.zip |
Revert "[CodeGen] Fix vtable not receiving hidden visibility when using push(visibility)"
This reverts commit r318853: tests are failing on Windows bots
llvm-svn: 318866
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 04585a8afbb..7350af870d2 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -240,7 +240,7 @@ llvm::Constant *CodeGenModule::getOrCreateStaticVarDecl( getModule(), LTy, Ty.isConstant(getContext()), Linkage, Init, Name, nullptr, llvm::GlobalVariable::NotThreadLocal, TargetAS); GV->setAlignment(getContext().getDeclAlign(&D).getQuantity()); - setGlobalVisibility(GV, &D, ForDefinition); + setGlobalVisibility(GV, &D); if (supportsCOMDAT() && GV->isWeakForLinker()) GV->setComdat(TheModule.getOrInsertComdat(GV->getName())); |