[PATCH] D96838: CodeGen: Set !retain metadata on UsedAttr definitions for Linux/FreeBSD
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 17 00:10:45 PST 2021
phosek added inline comments.
================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:2071
+ const llvm::Triple &T = getTarget().getTriple();
+ if (T.isOSFreeBSD() || T.isOSLinux())
+ GO->setMetadata(llvm::LLVMContext::MD_retain,
----------------
Would it be possible to also include Fuchsia?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96838/new/
https://reviews.llvm.org/D96838
More information about the cfe-commits
mailing list