We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3a96b commit 70e8bacCopy full SHA for 70e8bac
llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
@@ -4350,8 +4350,7 @@ bool SPIRVInstructionSelector::selectGlobalValue(
4350
if (hasInitializer(GlobalVar) && !Init)
4351
return true;
4352
4353
- bool HasLnkTy = !GV->hasInternalLinkage() && !GV->hasPrivateLinkage() &&
4354
- !GV->hasHiddenVisibility();
+ bool HasLnkTy = !GV->hasLocalLinkage() && !GV->hasHiddenVisibility();
4355
SPIRV::LinkageType::LinkageType LnkType =
4356
GV->isDeclarationForLinker()
4357
? SPIRV::LinkageType::Import
0 commit comments