Skip to content

Commit f06cf9d

Browse files
committed
[CallSite removal][CodeGen] Use CallBase instead of CallSite in getNoopInput in Analysis.cpp. NFC
1 parent 5889c5a commit f06cf9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/Analysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ static const Value *getNoopInput(const Value *V,
312312
DataBits = std::min((uint64_t)DataBits,
313313
I->getType()->getPrimitiveSizeInBits().getFixedSize());
314314
NoopInput = Op;
315-
} else if (auto CS = ImmutableCallSite(I)) {
316-
const Value *ReturnedOp = CS.getReturnedArgOperand();
315+
} else if (auto *CB = dyn_cast<CallBase>(I)) {
316+
const Value *ReturnedOp = CB->getReturnedArgOperand();
317317
if (ReturnedOp && isNoopBitcast(ReturnedOp->getType(), I->getType(), TLI))
318318
NoopInput = ReturnedOp;
319319
} else if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(V)) {

0 commit comments

Comments
 (0)