mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-05 15:42:24 +00:00
[CallSite removal][CodeGen] Use CallBase instead of CallSite in getNoopInput in Analysis.cpp. NFC
This commit is contained in:
parent
5889c5a814
commit
f06cf9da89
@ -312,8 +312,8 @@ static const Value *getNoopInput(const Value *V,
|
||||
DataBits = std::min((uint64_t)DataBits,
|
||||
I->getType()->getPrimitiveSizeInBits().getFixedSize());
|
||||
NoopInput = Op;
|
||||
} else if (auto CS = ImmutableCallSite(I)) {
|
||||
const Value *ReturnedOp = CS.getReturnedArgOperand();
|
||||
} else if (auto *CB = dyn_cast<CallBase>(I)) {
|
||||
const Value *ReturnedOp = CB->getReturnedArgOperand();
|
||||
if (ReturnedOp && isNoopBitcast(ReturnedOp->getType(), I->getType(), TLI))
|
||||
NoopInput = ReturnedOp;
|
||||
} else if (const InsertValueInst *IVI = dyn_cast<InsertValueInst>(V)) {
|
||||
|
Loading…
Reference in New Issue
Block a user