From 2a582711587881c78bd81ef3232f9f67e58ba2dd Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 18 Apr 2020 23:14:59 -0700 Subject: [PATCH] [CallSite removal][PtrUseVisitor] Use visitCallBase instead of visitCallSite. NFC --- llvm/include/llvm/Analysis/PtrUseVisitor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Analysis/PtrUseVisitor.h b/llvm/include/llvm/Analysis/PtrUseVisitor.h index 05bca2226742..f67bdba5748c 100644 --- a/llvm/include/llvm/Analysis/PtrUseVisitor.h +++ b/llvm/include/llvm/Analysis/PtrUseVisitor.h @@ -295,9 +295,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); } };