Skip to content

Commit ca10f9d

Browse files
committed
wip
1 parent 7eaab85 commit ca10f9d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13074,7 +13074,7 @@ class Sema final : public SemaBase {
1307413074
auto *FD = dyn_cast<FunctionDecl>(DC);
1307513075
S.PushFunctionScope();
1307613076
S.PushExpressionEvaluationContext(
13077-
(FD && FD->isConsteval())
13077+
(FD && FD->isImmediateFunction())
1307813078
? ExpressionEvaluationContext::ImmediateFunctionContext
1307913079
: ExpressionEvaluationContext::PotentiallyEvaluated);
1308013080
if (FD) {

clang/lib/AST/Decl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3285,10 +3285,10 @@ bool FunctionDecl::isImmediateEscalating() const {
32853285
return true;
32863286

32873287
if (auto *CD = dyn_cast<CXXConstructorDecl>(this);
3288-
CD && CD->isInheritingConstructor())
3289-
return CD->getInheritedConstructor()
3288+
CD && CD->isInheritingConstructor() && CD->getInheritedConstructor()
32903289
.getConstructor()
3291-
->isImmediateEscalating();
3290+
->isImmediateEscalating())
3291+
return true;
32923292

32933293
// - a function that results from the instantiation of a templated entity
32943294
// defined with the constexpr specifier.

clang/lib/AST/TextNodeDumper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ void TextNodeDumper::Visit(const Decl *D) {
306306
OS << " constexpr";
307307
if (FD->isConsteval())
308308
OS << " consteval";
309-
else if (FD->isImmediateFunction())
310-
OS << " immediate";
309+
//else if (FD->isImmediateFunction())
310+
// OS << " immediate";
311311
if (FD->isMultiVersion())
312312
OS << " multiversion";
313313
}

0 commit comments

Comments
 (0)