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) {
37
37
}
38
38
39
39
inline 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))
41
41
return MD->getParent ()->isLambda ();
42
42
return false ;
43
43
}
Original file line number Diff line number Diff line change @@ -13109,8 +13109,8 @@ class Sema final : public SemaBase {
13109
13109
? ExpressionEvaluationContext::ImmediateFunctionContext
13110
13110
: ExpressionEvaluationContext::PotentiallyEvaluated);
13111
13111
if (FD) {
13112
- auto &Current = S.currentEvaluationContext(),
13113
- Parent = S.parentEvaluationContext();
13112
+ auto &Current = S.currentEvaluationContext();
13113
+ const auto & Parent = S.parentEvaluationContext();
13114
13114
13115
13115
FD->setWillHaveBody(true);
13116
13116
Current.InImmediateFunctionContext =
You can’t perform that action at this time.
0 commit comments