diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/Analysis/ThreadSafetyCommon.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/Analysis/ThreadSafetyCommon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/clang/lib/Analysis/ThreadSafetyCommon.cpp b/contrib/llvm-project/clang/lib/Analysis/ThreadSafetyCommon.cpp index 1b8c55e56d47..0c5d1857cc2b 100644 --- a/contrib/llvm-project/clang/lib/Analysis/ThreadSafetyCommon.cpp +++ b/contrib/llvm-project/clang/lib/Analysis/ThreadSafetyCommon.cpp @@ -185,7 +185,7 @@ CapabilityExpr SExprBuilder::translateAttrExpr(const Expr *AttrExp, return CapabilityExpr(nullptr, false); // Hack to deal with smart pointers -- strip off top-level pointer casts. - if (const auto *CE = dyn_cast_or_null<til::Cast>(E)) { + if (const auto *CE = dyn_cast<til::Cast>(E)) { if (CE->castOpcode() == til::CAST_objToPtr) return CapabilityExpr(CE->expr(), Neg); } @@ -274,7 +274,7 @@ til::SExpr *SExprBuilder::translateDeclRefExpr(const DeclRefExpr *DRE, const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); // Function parameters require substitution and/or renaming. - if (const auto *PV = dyn_cast_or_null<ParmVarDecl>(VD)) { + if (const auto *PV = dyn_cast<ParmVarDecl>(VD)) { unsigned I = PV->getFunctionScopeIndex(); const DeclContext *D = PV->getDeclContext(); if (Ctx && Ctx->FunArgs) { |