Skip to content

Commit c77bdbe

Browse files
author
git apple-llvm automerger
committed
Merge commit '66b7d38faf81' from llvm.org/main into next
2 parents f10a6f5 + 66b7d38 commit c77bdbe

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)