From 88b7e06dcf9723d0869b0c6bee030b4140e4366d Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 13 Sep 2023 13:22:57 +0200 Subject: Revert "[clang][CodeGen] Emit annotations for function declarations." This reverts commit c6a33ff49dfb3498dae15c718820ea3d9c19f3cb. Makes clang segfault. // clang t.cc class a; class c { public: [[clang::annotate("")]] c(const c *) {} }; class d { d(const c *, a *, a *); c e; }; d::d(const c *f, a *, a *) : e(f) {} --- clang/lib/CodeGen/CodeGenModule.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.h') diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 8b0d68a..073b471 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -431,10 +431,6 @@ private: /// Global annotations. std::vector Annotations; - // Store deferred function annotations so they can be emitted at the end with - // most up to date ValueDecl that will have all the inherited annotations. - llvm::DenseMap DeferredAnnotations; - /// Map used to get unique annotation strings. llvm::StringMap AnnotationStrings; -- cgit v1.1