diff options
author | Martin Storsjö <martin@martin.st> | 2025-01-30 12:05:56 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2025-01-30 12:05:56 +0200 |
commit | 5c24847e7dba01dde230e18b39a3074022279c89 (patch) | |
tree | 42a21b5a478f35b81e500ed11fe8e4c995d4af2f /clang/lib/Serialization/ASTWriterDecl.cpp | |
parent | 956cfa69b153a0e798060f67e713790eeefebc04 (diff) | |
download | llvm-5c24847e7dba01dde230e18b39a3074022279c89.zip llvm-5c24847e7dba01dde230e18b39a3074022279c89.tar.gz llvm-5c24847e7dba01dde230e18b39a3074022279c89.tar.bz2 |
Revert "[clang] Track function template instantiation from definition (#112241)"
This reverts commit 07a0e2be86f33beb6d519a3d466b95c2257e93cb.
This change broke compiling Qt; see
https://github.com/llvm/llvm-project/pull/112241 for details.
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriterDecl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp index 6a79444..fa2294d 100644 --- a/clang/lib/Serialization/ASTWriterDecl.cpp +++ b/clang/lib/Serialization/ASTWriterDecl.cpp @@ -679,7 +679,7 @@ void ASTDeclWriter::VisitDeclaratorDecl(DeclaratorDecl *D) { } void ASTDeclWriter::VisitFunctionDecl(FunctionDecl *D) { - static_assert(DeclContext::NumFunctionDeclBits == 45, + static_assert(DeclContext::NumFunctionDeclBits == 44, "You need to update the serializer after you change the " "FunctionDeclBits"); @@ -785,7 +785,6 @@ void ASTDeclWriter::VisitFunctionDecl(FunctionDecl *D) { FunctionDeclBits.addBit(D->hasImplicitReturnZero()); FunctionDeclBits.addBit(D->isMultiVersion()); FunctionDeclBits.addBit(D->isLateTemplateParsed()); - FunctionDeclBits.addBit(D->isInstantiatedFromMemberTemplate()); FunctionDeclBits.addBit(D->FriendConstraintRefersToEnclosingTemplate()); FunctionDeclBits.addBit(D->usesSEHTry()); Record.push_back(FunctionDeclBits); |