[CallSite removal][CodeGen] Use CallBase instead of ImmutableCallSite in SwiftErrorValueTracking. NFC
This commit is contained in:
@@ -264,11 +264,10 @@ void SwiftErrorValueTracking::preassignVRegs(
|
||||
|
||||
// Iterator over instructions and assign vregs to swifterror defs and uses.
|
||||
for (auto It = Begin; It != End; ++It) {
|
||||
ImmutableCallSite CS(&*It);
|
||||
if (CS) {
|
||||
if (auto *CB = dyn_cast<CallBase>(&*It)) {
|
||||
// A call-site with a swifterror argument is both use and def.
|
||||
const Value *SwiftErrorAddr = nullptr;
|
||||
for (auto &Arg : CS.args()) {
|
||||
for (auto &Arg : CB->args()) {
|
||||
if (!Arg->isSwiftError())
|
||||
continue;
|
||||
// Use of swifterror.
|
||||
|
||||
Reference in New Issue
Block a user