diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 |
commit | cfca06d7963fa0909f90483b42a6d7d194d01e08 (patch) | |
tree | 209fb2a2d68f8f277793fc8df46c753d31bc853b /llvm/include/llvm/Analysis/PtrUseVisitor.h | |
parent | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (diff) |
Notes
Diffstat (limited to 'llvm/include/llvm/Analysis/PtrUseVisitor.h')
-rw-r--r-- | llvm/include/llvm/Analysis/PtrUseVisitor.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/include/llvm/Analysis/PtrUseVisitor.h b/llvm/include/llvm/Analysis/PtrUseVisitor.h index 05bca2226742c..78e9251da6272 100644 --- a/llvm/include/llvm/Analysis/PtrUseVisitor.h +++ b/llvm/include/llvm/Analysis/PtrUseVisitor.h @@ -26,7 +26,6 @@ #include "llvm/ADT/PointerIntPair.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" -#include "llvm/IR/CallSite.h" #include "llvm/IR/DataLayout.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/InstVisitor.h" @@ -295,9 +294,9 @@ protected: // Generically, arguments to calls and invokes escape the pointer to some // other function. Mark that. - void visitCallSite(CallSite CS) { - PI.setEscaped(CS.getInstruction()); - Base::visitCallSite(CS); + void visitCallBase(CallBase &CB) { + PI.setEscaped(&CB); + Base::visitCallBase(CB); } }; |