Skip to content

Commit 7cf75e6

Browse files
author
git apple-llvm automerger
committed
Merge commit '4e882805dc8e' from llvm.org/main into next
2 parents c77bdbe + 4e88280 commit 7cf75e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,7 @@ bool SPIRVCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder,
479479
.addImm(static_cast<uint32_t>(getExecutionModel(*ST, F)))
480480
.addUse(FuncVReg);
481481
addStringImm(F.getName(), MIB);
482-
} else if (F.getLinkage() != GlobalValue::InternalLinkage &&
483-
F.getLinkage() != GlobalValue::PrivateLinkage &&
482+
} else if (!F.hasLocalLinkage() &&
484483
F.getVisibility() != GlobalValue::HiddenVisibility) {
485484
SPIRV::LinkageType::LinkageType LnkTy =
486485
F.isDeclaration()

0 commit comments

Comments
 (0)