[llvm] 66b7d38 - [NFC][SPIRV] Use hasLocalLinkage instead of hasInternalLinkage or hasPrivateLinkage (#164236)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 08:54:49 PDT 2025
Author: Juan Manuel Martinez CaamaƱo
Date: 2025-10-20T17:54:45+02:00
New Revision: 66b7d38faf81c43a061a1f591a38645f312cb21e
URL: https://github.com/llvm/llvm-project/commit/66b7d38faf81c43a061a1f591a38645f312cb21e
DIFF: https://github.com/llvm/llvm-project/commit/66b7d38faf81c43a061a1f591a38645f312cb21e.diff
LOG: [NFC][SPIRV] Use hasLocalLinkage instead of hasInternalLinkage or hasPrivateLinkage (#164236)
Added:
Modified:
llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp b/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
index a0cff4d82b500..86d1444180855 100644
--- a/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
@@ -4350,8 +4350,7 @@ bool SPIRVInstructionSelector::selectGlobalValue(
if (hasInitializer(GlobalVar) && !Init)
return true;
- bool HasLnkTy = !GV->hasInternalLinkage() && !GV->hasPrivateLinkage() &&
- !GV->hasHiddenVisibility();
+ bool HasLnkTy = !GV->hasLocalLinkage() && !GV->hasHiddenVisibility();
SPIRV::LinkageType::LinkageType LnkType =
GV->isDeclarationForLinker()
? SPIRV::LinkageType::Import
More information about the llvm-commits
mailing list