Skip to content

Commit f85f1dd

Browse files
jmmartinezaokblast
authored andcommitted
[NFC][SPIRV] Use hasLocalLinkage instead of hasInternalLinkage or hasPrivateLinkage (llvm#164236)
1 parent f372d48 commit f85f1dd

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)