diff options
author | Craig Topper <craig.topper@gmail.com> | 2020-04-12 23:09:35 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2020-04-13 00:19:27 -0700 |
commit | 42487eafa6cfe83a8467e02bfdb50cd980ccb87c (patch) | |
tree | 59e33ba3abd640234e307543e538fdff2a2e02bd /llvm/lib/CodeGen/SwiftErrorValueTracking.cpp | |
parent | 835c2aa7a68bb1fc559233e007f8e57b263eac99 (diff) | |
download | llvm-42487eafa6cfe83a8467e02bfdb50cd980ccb87c.zip llvm-42487eafa6cfe83a8467e02bfdb50cd980ccb87c.tar.gz llvm-42487eafa6cfe83a8467e02bfdb50cd980ccb87c.tar.bz2 |
[CallSite removal][CodeGen] Use CallBase instead of ImmutableCallSite in SwiftErrorValueTracking. NFC
Diffstat (limited to 'llvm/lib/CodeGen/SwiftErrorValueTracking.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SwiftErrorValueTracking.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<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. |