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 5889c5a commit f06cf9dCopy full SHA for f06cf9d
llvm/lib/CodeGen/Analysis.cpp
@@ -312,8 +312,8 @@ static const Value *getNoopInput(const Value *V,
312
DataBits = std::min((uint64_t)DataBits,
313
I->getType()->getPrimitiveSizeInBits().getFixedSize());
314
NoopInput = Op;
315
- } else if (auto CS = ImmutableCallSite(I)) {
316
- const Value *ReturnedOp = CS.getReturnedArgOperand();
+ } else if (auto *CB = dyn_cast<CallBase>(I)) {
+ const Value *ReturnedOp = CB->getReturnedArgOperand();
317
if (ReturnedOp && isNoopBitcast(ReturnedOp->getType(), I->getType(), TLI))
318
NoopInput = ReturnedOp;
319
} else if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(V)) {
0 commit comments