From 42487eafa6cfe83a8467e02bfdb50cd980ccb87c Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 12 Apr 2020 23:09:35 -0700 Subject: [CallSite removal][CodeGen] Use CallBase instead of ImmutableCallSite in SwiftErrorValueTracking. NFC --- llvm/lib/CodeGen/SwiftErrorValueTracking.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/SwiftErrorValueTracking.cpp') diff --git a/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp b/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp index c72a042..dd0b9d4 100644 --- a/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp +++ b/llvm/lib/CodeGen/SwiftErrorValueTracking.cpp @@ -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(&*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. -- cgit v1.1