Skip to content

Commit 9c027bb

Browse files
jmmartinezgithub-actions[bot]
authored andcommitted
Automerge: [NFC][SPIRV] Use hasLocalLinkage instead of hasInternalLinkage or hasPrivateLinkage (#164236)
2 parents d163ea4 + 66b7d38 commit 9c027bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4350,8 +4350,7 @@ bool SPIRVInstructionSelector::selectGlobalValue(
43504350
if (hasInitializer(GlobalVar) && !Init)
43514351
return true;
43524352

4353-
bool HasLnkTy = !GV->hasInternalLinkage() && !GV->hasPrivateLinkage() &&
4354-
!GV->hasHiddenVisibility();
4353+
bool HasLnkTy = !GV->hasLocalLinkage() && !GV->hasHiddenVisibility();
43554354
SPIRV::LinkageType::LinkageType LnkType =
43564355
GV->isDeclarationForLinker()
43574356
? SPIRV::LinkageType::Import

0 commit comments

Comments
 (0)