From cfca06d7963fa0909f90483b42a6d7d194d01e08 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 26 Jul 2020 19:36:28 +0000 Subject: Vendor import of llvm-project master 2e10b7a39b9, the last commit before the llvmorg-12-init tag, from which release/11.x was branched. --- llvm/lib/Analysis/ObjCARCInstKind.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Analysis/ObjCARCInstKind.cpp') diff --git a/llvm/lib/Analysis/ObjCARCInstKind.cpp b/llvm/lib/Analysis/ObjCARCInstKind.cpp index 0e96c6e975c99..fb416a79ac26e 100644 --- a/llvm/lib/Analysis/ObjCARCInstKind.cpp +++ b/llvm/lib/Analysis/ObjCARCInstKind.cpp @@ -153,7 +153,7 @@ ARCInstKind llvm::objcarc::GetFunctionClass(const Function *F) { } } -// A whitelist of intrinsics that we know do not use objc pointers or decrement +// A list of intrinsics that we know do not use objc pointers or decrement // ref counts. static bool isInertIntrinsic(unsigned ID) { // TODO: Make this into a covered switch. @@ -192,7 +192,7 @@ static bool isInertIntrinsic(unsigned ID) { } } -// A whitelist of intrinsics that we know do not use objc pointers or decrement +// A list of intrinsics that we know do not use objc pointers or decrement // ref counts. static bool isUseOnlyIntrinsic(unsigned ID) { // We are conservative and even though intrinsics are unlikely to touch @@ -234,11 +234,11 @@ ARCInstKind llvm::objcarc::GetARCInstKind(const Value *V) { } // Otherwise, be conservative. - return GetCallSiteClass(CI); + return GetCallSiteClass(*CI); } case Instruction::Invoke: // Otherwise, be conservative. - return GetCallSiteClass(cast(I)); + return GetCallSiteClass(cast(*I)); case Instruction::BitCast: case Instruction::GetElementPtr: case Instruction::Select: -- cgit v1.2.3