aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorcor3ntin <corentinjabot@gmail.com>2025-01-27 23:51:19 +0100
committerGitHub <noreply@github.com>2025-01-27 23:51:19 +0100
commit0e372c3ea31da276ac67c5972e4ef63514577e9c (patch)
tree0de8cfd89b9f711497f319d1a23def4ccb23fb4a /clang/lib/Sema/SemaDecl.cpp
parent89c5576ff9038ba53025ca82209fdc5f5b5d0bb4 (diff)
downloadllvm-0e372c3ea31da276ac67c5972e4ef63514577e9c.zip
llvm-0e372c3ea31da276ac67c5972e4ef63514577e9c.tar.gz
llvm-0e372c3ea31da276ac67c5972e4ef63514577e9c.tar.bz2
Revert "[Clang] call HandleImmediateInvocation before checking for immediate escacalating expressions" (#124646)
Reverts llvm/llvm-project#124414 Turns out to be an important compile time regression, I'll come up with a less disruptive approach
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index accef4c..fe68ead 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -16019,6 +16019,7 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body,
if (!FD->isDeletedAsWritten())
FD->setBody(Body);
FD->setWillHaveBody(false);
+ CheckImmediateEscalatingFunctionDefinition(FD, FSI);
if (getLangOpts().CPlusPlus14) {
if (!FD->isInvalidDecl() && Body && !FD->isDependentContext() &&