From 5889c5a8142913625a400b5e7452df353a4669bc Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 12 Apr 2020 23:43:06 -0700 Subject: [PATCH] [CallSite removal][CodeGen] Use CallBase instead of ImmutableCallSite in TargetFrameLoweringInfo. NFC --- llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp b/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp index b981e96..860c887 100644 --- a/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp +++ b/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp @@ -18,9 +18,9 @@ #include "llvm/CodeGen/TargetRegisterInfo.h" #include "llvm/CodeGen/TargetSubtargetInfo.h" #include "llvm/IR/Attributes.h" -#include "llvm/IR/CallSite.h" #include "llvm/IR/CallingConv.h" #include "llvm/IR/Function.h" +#include "llvm/IR/InstrTypes.h" #include "llvm/MC/MCRegisterInfo.h" #include "llvm/Support/Compiler.h" #include "llvm/Target/TargetMachine.h" @@ -141,8 +141,8 @@ bool TargetFrameLowering::isSafeForNoCSROpt(const Function &F) { return false; // Function should not be optimized as tail call. for (const User *U : F.users()) - if (auto CS = ImmutableCallSite(U)) - if (CS.isTailCall()) + if (auto *CB = dyn_cast(U)) + if (CB->isTailCall()) return false; return true; } -- 2.7.4