File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ inline bool isLambdaCallOperator(const DeclContext *DC) {
3737}
3838
3939inline bool isLambdaMethod (const DeclContext *DC) {
40- if (auto *MD = dyn_cast_or_null <CXXMethodDecl>(DC); MD )
40+ if (const auto *MD = dyn_cast_if_present <CXXMethodDecl>(DC))
4141 return MD->getParent ()->isLambda ();
4242 return false ;
4343}
Original file line number Diff line number Diff line change @@ -13109,8 +13109,8 @@ class Sema final : public SemaBase {
1310913109 ? ExpressionEvaluationContext::ImmediateFunctionContext
1311013110 : ExpressionEvaluationContext::PotentiallyEvaluated);
1311113111 if (FD) {
13112- auto &Current = S.currentEvaluationContext(),
13113- Parent = S.parentEvaluationContext();
13112+ auto &Current = S.currentEvaluationContext();
13113+ const auto & Parent = S.parentEvaluationContext();
1311413114
1311513115 FD->setWillHaveBody(true);
1311613116 Current.InImmediateFunctionContext =
You can’t perform that action at this time.
0 commit comments