From cfca06d7963fa0909f90483b42a6d7d194d01e08 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 26 Jul 2020 19:36:28 +0000 Subject: Vendor import of llvm-project master 2e10b7a39b9, the last commit before the llvmorg-12-init tag, from which release/11.x was branched. --- 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 c72a04276a4f..dd0b9d4c2e48 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.2.3