[PATCH] D110054: [AMDGPU] - change ASAN init/fini kernels linkage to external.
praveen velliengiri via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 20 02:00:43 PDT 2021
pvellien created this revision.
pvellien added reviewers: yaxunl, b-sumner.
Herald added subscribers: foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, nhaehnle, jvesely, kzhuravl, arsenm.
pvellien requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
change address sanitizer ctor/dtor kernels linkage to external.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110054
Files:
llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
Index: llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
+++ llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
@@ -36,7 +36,7 @@
Function *InitOrFiniKernel = Function::createWithDefaultAttr(
FunctionType::get(Type::getVoidTy(M.getContext()), false),
- GlobalValue::InternalLinkage, 0, InitOrFiniKernelName, &M);
+ GlobalValue::ExternalLinkage, 0, InitOrFiniKernelName, &M);
BasicBlock *InitOrFiniKernelBB =
BasicBlock::Create(M.getContext(), "", InitOrFiniKernel);
ReturnInst::Create(M.getContext(), InitOrFiniKernelBB);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110054.373517.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210920/04395c79/attachment.bin>
More information about the llvm-commits
mailing list