[all-commits] [llvm/llvm-project] 88b7e0: Revert "[clang][CodeGen] Emit annotations for func...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Wed Sep 13 04:27:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88b7e06dcf9723d0869b0c6bee030b4140e4366d
      https://github.com/llvm/llvm-project/commit/88b7e06dcf9723d0869b0c6bee030b4140e4366d
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    R clang/test/CodeGen/annotations-decl-use-decl.c
    R clang/test/CodeGen/annotations-decl-use-define.c
    R clang/test/CodeGen/annotations-declaration.c
    M clang/test/CodeGen/annotations-global.c
    R clang/test/CodeGenCXX/attr-annotate-destructor.cpp
    M clang/test/CodeGenCXX/attr-annotate.cpp

  Log Message:
  -----------
  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) {}




More information about the All-commits mailing list