Revert "AddGlobalAnnotations for function with or without function body."
authorAaron Ballman <aaron@aaronballman.com>
Thu, 21 Oct 2021 11:08:18 +0000 (07:08 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 21 Oct 2021 11:08:18 +0000 (07:08 -0400)
commitaad244dfc566236e9d3ef48c7aea3616bb6aab14
tree3fdc02b293b66558a0eba6bd2549aff21adb1af5
parent39724158d38766f7d8683f78f54d80d174cae96a
Revert "AddGlobalAnnotations for function with or without function body."

This reverts commit 121b2252de0eed68f2ddf5f09e924a6c35423d47.

The following code causes a crash in some circumstances:

  struct k {
    ~k() __attribute__((annotate(""))) {}
  };
  void m() { k(); }
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/annotations-global.c
clang/test/CodeGenCXX/attr-annotate.cpp