Skip to content

Commit

Permalink
Wrap CallInst::getNumArgOperands calls for LLVM 14
Browse files Browse the repository at this point in the history
Rework all remaining call sites to rely on the already-existing wrapper
function.
  • Loading branch information
AGindinson authored and igcbot committed Jun 21, 2022
1 parent ec864ca commit 1d5ceaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IGC/Compiler/CISACodeGen/HFpackingOpt.cpp
Expand Up @@ -825,7 +825,7 @@ bool HFpackingOpt::findStoreSequence(std::vector<Instruction*>& path, std::vecto
uint srciCount = inst->getNumOperands();
if (CallInst* cinst = dyn_cast<CallInst>(inst))
{
srciCount = cinst->getNumArgOperands();
srciCount = IGCLLVM::getNumArgOperands(cinst);
}

for (uint srci = 0; srci < srciCount; srci++)
Expand Down

0 comments on commit 1d5ceaf

Please sign in to comment.