[clang] [llvm] [clang][CodeGen] `used` globals && the payloads for global ctors & dtors are globals (PR #93601)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 10:24:28 PDT 2024
================
@@ -2922,18 +2922,19 @@ static void emitUsed(CodeGenModule &CGM, StringRef Name,
if (List.empty())
return;
+ llvm::Type *UsedPtrTy = llvm::PointerType::getUnqual(CGM.getLLVMContext());
----------------
arsenm wrote:
Best to just use get(Ctx, 0)
https://github.com/llvm/llvm-project/pull/93601
More information about the llvm-commits
mailing list