aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2020-04-12 23:43:06 -0700
committerCraig Topper <craig.topper@gmail.com>2020-04-13 00:20:12 -0700
commit5889c5a8142913625a400b5e7452df353a4669bc (patch)
tree0022ccff742dc0678f3924fb8a0e92c66d8d15a1 /llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
parente59162960cee4622a2837aa290f41d229302a174 (diff)
downloadllvm-5889c5a8142913625a400b5e7452df353a4669bc.zip
llvm-5889c5a8142913625a400b5e7452df353a4669bc.tar.gz
llvm-5889c5a8142913625a400b5e7452df353a4669bc.tar.bz2
[CallSite removal][CodeGen] Use CallBase instead of ImmutableCallSite in TargetFrameLoweringInfo. NFC
Diffstat (limited to 'llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp6
1 files 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<CallBase>(U))
+ if (CB->isTailCall())
return false;
return true;
}