File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
clang/lib/Analysis/LifetimeSafety Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 99#include " clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h"
1010#include " clang/Analysis/Analyses/LifetimeSafety/LifetimeAnnotations.h"
1111#include " clang/Analysis/Analyses/PostOrderCFGView.h"
12+ #include " llvm/Support/Casting.h"
1213#include " llvm/Support/TimeProfiler.h"
1314
1415namespace clang ::lifetimes::internal {
16+ using llvm::isa_and_present;
1517
1618static bool isGslPointerType (QualType QT) {
1719 if (const auto *RD = QT->getAsCXXRecordDecl ()) {
@@ -108,7 +110,7 @@ void FactsGenerator::VisitCXXMemberCallExpr(const CXXMemberCallExpr *MCE) {
108110 // Specifically for conversion operators,
109111 // like `std::string_view p = std::string{};`
110112 if (isGslPointerType (MCE->getType ()) &&
111- isa <CXXConversionDecl>(MCE->getCalleeDecl ())) {
113+ isa_and_present <CXXConversionDecl>(MCE->getCalleeDecl ())) {
112114 // The argument is the implicit object itself.
113115 handleFunctionCall (MCE, MCE->getMethodDecl (),
114116 {MCE->getImplicitObjectArgument ()},
You can’t perform that action at this time.
0 commit comments