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 ebca521 commit 56afa1eCopy full SHA for 56afa1e
llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp
@@ -544,7 +544,8 @@ SPIRVPrepareFunctions::removeAggregateTypesFromSignature(Function *F) {
544
std::move(ChangedTypes), NewF->getName());
545
546
for (auto *U : make_early_inc_range(F->users())) {
547
- if (auto *CI = dyn_cast<CallInst>(U))
+ if (CallInst *CI;
548
+ (CI = dyn_cast<CallInst>(U)) && CI->getCalledFunction() == F)
549
CI->mutateFunctionType(NewF->getFunctionType());
550
if (auto *C = dyn_cast<Constant>(U))
551
C->handleOperandChange(F, NewF);
0 commit comments